Dear VTK-Users,<br><br>I'm having trouble with something that seems to be very simple.<br><br>I have a vtkImageActor that has an image I read from the hard drive. I also have a vtkContourWidget rendered as well. I set the points of the vtkContourWidget based on a segmentation algorithm we have developed, and it is a closed contour. The user can move the points around, and it looks pretty sweet.<br>
<br>How can I check if a pixel in my image is inside or outside the vtkContourWidget? The best option seemed to be to use Delaunay Triangulation to "fill" the contour, and then use vtkSelectEnclosedPoints to check if the points are inside the contour or not. However, for some reason it doesn't seem to consider my triangulated contour as closed, so it doesn't work.<br>
<br>Surely there's a simple way of doing this. <br><br>Thank you.<br><br>-George<br>