1

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)?

Sonnenschein
  • 169
  • 7
  • 21

1 Answers1

2

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

siavashk
  • 436
  • 7
  • 24
  • But, how to convert those contours to a closed surface? – Sonnenschein Jun 06 '15 at 11:48
  • 1
    There are lots of ways of constructing a surface from point clouds. I won't list them in detail, since this has already been answered in: http://stackoverflow.com/questions/838761/robust-algorithm-for-surface-reconstruction-from-3d-point-cloud – siavashk Jun 08 '15 at 16:53