[vtkusers] Fixing vtkPolyDataToImageStencil
david.gobbi at gmail.com
Thu Dec 4 11:32:16 EST 2014
Thanks for the feedback. In the image that you attached, the pixels are
twice as large as the "jaggies" of the contour, so I'm not sure how it
would be possible for them to match exactly?
That diagram for polygon scan conversion is an accurate depiction of what
vtkPolyDataToImageStencil does if you call SetTolerance(0.0) and the
contour passes exactly through the centre of a voxel. If the tolerance is
greater than zero, then leftmost and topmost pixels would also be included.
On Thu, Dec 4, 2014 at 9:17 AM, Ricardo A Corredor <ra.corredor at gmail.com>
> Hi David,
> I didn't reply when you submit this change, but I confirm that it works
> !! Thanks
> However, I still have a question. Please look the following image:
> There are some voxels inside the polydata that are not included in the
> mask. Is it a problem on the way they are calculated? Probably a shift when
> considering the voxel inside the contour (something like what is shown here
> Thank you again and have a good day.
> View this message in context:
> Sent from the VTK - Users mailing list archive at Nabble.com.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers