[vtkusers] Setting VOI in a circular manner

David Gobbi david.gobbi at gmail.com
Sun Apr 21 20:28:26 EDT 2013


You can probably do this with two circular ROIs and two
vtkImageStencil filters, one after the other.  Set ReverseStencilOn()
for the second fllter.

On Sun, Apr 21, 2013 at 6:05 PM, Hayden Smith <s_hayden_28 at yahoo.com> wrote:
> Hello,
>      Thank you very much. I have been able to cut a circular portion from
> the image and construct a polydata using your suggestion. Now suppose I have
> set two circular ROIs one inside another in a cylindrical manner and I only
> want to visualize the cylindrical portion, could any one suggest me how that
> can be done.
>     Or is there any method available in VTK about cutting out a cylindrical
> portion from the center of an object.
>
> Thank in advance.
>
> Regards,
> Hayden.
> From: David Gobbi <david.gobbi at gmail.com>
> To: Hayden Smith <s_hayden_28 at yahoo.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Sent: Sunday, April 21, 2013 10:13 AM
> Subject: Re: [vtkusers] Setting VOI in a circular manner
>
> Hi Hayden,
>
> The vtkROIStencilSource can generate a circular ROI for an image that
> some of the other image filters can use, e.g. vtkImageStencil can
> black out all pixels that are outside of the ROI.
>
> - David
>
> On Sun, Apr 21, 2013 at 8:58 AM, Hayden Smith <s_hayden_28 at yahoo.com> wrote:
>> Dear VTK users,
>>        I would like to know while using vtkImageReader, is it  possible to
>> set VOI in a circular manner from the center of image? Current
>> implementation shows setting of VOI in a rectangle.
>>
>> Thanks and regards,
>> Hayden.
>
>



More information about the vtkusers mailing list