[vtkusers] image masking pb
David Gobbi
dgobbi at imaging.robarts.ca
Mon Dec 15 21:45:16 EST 2003
Hi Dean,
The vtkImplicitSelectionLoop works good for this, but it there isn't
any filter to convert a vtkPolyData into a SelectionLoop, you have to
do it by hand.
Once you have a vtkImplicitSelectionLoop, you can convert it into a
"stencil" with the vtkImplicitFunctionToImageStencil filter. A "stencil"
is essentially a masked region that has been compressed into run-lengths,
a few of the image filters take a stencil as an additional input.
There is also a vtkPolyDataToImageStencil filter, but it is meant for
closed polyhedral surfaces, not for closed 2D polygons.
- David
On Mon, 15 Dec 2003 dean.inglis at camris.ca wrote:
> Can someone suggest a pipeline to
> mask out a region enclosed by a
> closed polyline (a vtkPolyData consisting
> of points and line segments)? The polyline
> may or may not be convex.
>
> Dean
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list