Search code examples
matlabmeshdicomitkmeshlab

Convert mesh to 3d segmentation Image


I would like to ask if anyone knows how to convert a 3D mesh to a segmented imagen in a format like dicom for example. The problem is that I have a 3D label volume in Dicom format. I create a mesh from it, and then process the mesh; so at the end I end up with a different mesh volume. Now I want to see how it looks in a per slice volume (Dicom). I hope it is clear. Thanks!


Solution

  • Since you use ITK already, pair it with VTK. vtkPolyDataToImageStencil is what you are looking for.

    http://www.vtk.org/doc/release/6.3/html/classvtkPolyDataToImageStencil.html