[vtkusers] vtkPolyDataToImageStencil with partial volume

Jonathan Morra jonmorra at gmail.com
Wed Feb 23 13:22:39 EST 2011


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
1.  How does vtkPolyDataToImageStencil handle partial volume.
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.

Thanks,
Jon

PS If my assumption about partial volume effects is wrong, please let me
know.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110223/d2cdc880/attachment.htm>


More information about the vtkusers mailing list