[vtkusers] Filling a polygon in ImageData
Dominik Szczerba
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)
-- Dominik
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.
>
> Suggestions?
> _______________________________________________
> 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
--
Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071226/2d53f67f/attachment.pgp>
More information about the vtkusers
mailing list