I am currently using vtkPolyDataToImageStencil to successfully convert contours represented as vtkPolyData to binary vtkImageData's. However, I'm noticing a problem with the output sometimes. Sometimes the resulting binary images are slightly smaller or slightly bigger than the poly data they were made from. I assume this is the result of partial volume effects. I would like to know 2 things<div>
1. How does vtkPolyDataToImageStencil handle partial volume.</div><div>2. Is there a way to tune partial volume in vtkPolyDataToImageStencil? For instance, a parameter which says if the contour includes less than x percentage of the pixel then that pixel is 0.</div>
<div><br></div><div>Thanks,</div><div>Jon</div><div><br></div><div>PS If my assumption about partial volume effects is wrong, please let me know.</div>