I want assing a 255 value for pixels inside a contour and 0 for outside pixels. the contour is composed of a set of 3D points that have same z-value. are there a vtk filters that allow to do that? vtkPolygon::PointinPolygon does not seem give good results (because a closed contour is transformed to a filled square). I want obtain result like in figure.
thank’s in advance