[vtkusers] Closed vtkPolyLine to binary image

Dirk Boye body at nabla.org
Mon Jul 12 02:36:32 EDT 2010


Dear list,

let's say I have a closed vtkPolyLine in 2D and points are
ordered clockwise and last point=first point.
The resulting Polygon is non-convex.

I'd like to create a binary image
from that. Ones inside the line, zeros outside. See picture:
http://www.nabla.org/circlecontour.png

Is there an filter to do that? Or do I have to check all pixels,
if they are inside?


Cheers,
Dirk






More information about the vtkusers mailing list