Marwa Shams
Marwa Shams

Reputation: 179

How to convert vtkPolyData to itkImage?

I've set of vtk polygonal data files for segmented vessels:-


vessel_1 vessel_2


How to (voxelize) convert it to itk image with specific (size, origin and spacing)?

Upvotes: 1

Views: 736

Answers (1)

siavashk
siavashk

Reputation: 434

This is not a trivial problem. It is not possible to do that given your raw contours. If you can convert your contours to a closed surface, then you can use vtkVoxelModeller to create a vtkImage. Then you can create an itk image using vtkITKImageFilter.

Alternatively, you can fit a closed geometry to your contours and create voxels based on the parameterization of your geometry: http://www.mit.edu/~adalca/files/papers/nerve_segmentation.pdf

Upvotes: 2

Related Questions