[vtkusers] Filling a polygon in ImageData
domi at vision.ee.ethz.ch
Wed Dec 26 07:22:18 EST 2007
You need to extract a polygon by vtkContourFilter and test all the points in a
plane for inside or outside. You could BTW do it right away in 3D (by
extracting a polygonal surface)
On Friday 14 December 2007 23.46:02 kent williams wrote:
> I need to go from a collection of closed polygons each associate with
> a slice of an image volume, to an image volume defining a mask.
> In other words, for each slice in a volume, I want to set pixels to 1
> if they're inside a polygon in the collection, and set them to zero if
> they're not.
> 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:
Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the vtkusers