[vtkusers] cylindrical ROI
David Gobbi
david.gobbi at gmail.com
Wed Jul 30 13:16:01 EDT 2008
Hi David,
Do you want to just mark the ROI with the cylinder, or do you
want to operate on the pixels with the ROI as well? If you
want to do the latter, then you might be better off using
vtkTransformPolyDataFilter to scale/move the cylinder
so that you can pull out the geometry of the transformed
cylinder and use them to create either a stencil or a
vtkImplicitSelectionLoop.
See the following examples:
Hybrid/Testing/Tcl/TestImageStencilWithPolydata.tcl
Filtering/Testing/Tcl/SelectionLoop.tcl
I hope that I wasn't off track with what you are trying to do.
David
On Wed, Jul 30, 2008 at 12:59 PM, Dgillard <dgillard at pangeosubsea.com> wrote:
>
> Turns out that a nice way to do this is to create a circular cylinder with
> vtkCylinderSource, and then use an actor to scale it's dimensions.
>
>
> Dgillard wrote:
>>
>> I've got vtkImageData that I'm sifting through. I'd like to be able to
>> create a region of interest, preferably an elliptical cylinder.
>>
>> I'm thinking of creating the region with vtkQuadric and
>> vtkContourFilter, but am not certain if this is the best way to go about
>> doing it. I don't know how to manipulate only the data enclosed by the
>> ROI, for instance.
>>
>> Any tips or suggestions would be greatly appreciated.
>>
>> D.G.
>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
> --
> View this message in context: http://www.nabble.com/cylindrical-ROI-tp18465823p18737908.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list