[vtkusers] vtkClipPolyData

Reinhold Füreder R.Fureder at exeter.ac.uk
Sat Jan 22 10:39:11 EST 2005


Dear Karl,

In case you are still looking for a solution: since your input is a 3D
binary image already you could try to extract the 2D image plane
directly instead of going the way of doing a "pseudo voxelisation"?
Please correct me, if I am missing something.

To fill the contour you can use image processing floodfill operation
assuming the contour is closed and has no selfintersections (other
conditions?), or if you prefer visualisation algorithms implement scan
line or rasterisation algorithm (again at least the contour must be
closed) as used by the graphics card for instance...
BTW, there are more (3D) voxelisation algorithms available in VTK, most
of them taking vtkPolyData as input.

HTH Reinhold

> -----Original Message-----
> From: vtkusers-bounces at vtk.org 
> [mailto:vtkusers-bounces at vtk.org] On Behalf Of Karl Fritscher
> Sent: Monday, January 17, 2005 1:23 PM
> To: vtkusers at vtk.org
> Subject: [vtkusers] vtkClipPolyData
> 
> 
> Hello,
> 
> i would like to cut a 3d binary image by using the vtk 
> implicit plane widget and convert the output back to an itk 
> image. The miage contains a sphere where the pixels inside of 
> the shpere are white and everything outside is black. I 
> managed to cut the image an convert the polydata using 
> vtkImplicitModeller and VTKImageToImageFilter. Ht eproblem 
> is, that the Implicit Modeller is only returning the contour 
> of the cut polydata. What I would need is that everything 
> which is inside the initial sphere (and "inside" the cutting 
> plane) is white and everything outside is black again. I 
> would really appreciate, If somebody could
> give me a hint on how i could achive this.   
> 
> Karl Fritscher
> Research Assistant
> UMIT-Austria
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: 
http://www.vtk.org/Wiki/VTK_FAQ Follow this link to
subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list