Good day,
I have raw patient images as well as their segmentations as 3D models. I need to convert segmentations to 3D image so that this converted image will be aligned with the patient’s one.
Could you please tell me, is it possible to convert 3D mesh(.ply) to the DICOM or any other format for 3D images? And is it possible to align it with the other DICOM image?
If you need to convert a small number of files, 3D Slicer is a great choice. It reads STL. And somebody already established a series of steps for this.
If you need automated conversion, you could adapt this ITK example.
I used VTK’s vtkPolyDataToImageStencil filter to do it:
https://vtk.org/doc/nightly/html/classvtkPolyDataToImageStencil.html
Here’s an example that uses it:
https://lorensen.github.io/VTKExamples/site/Python/PolyData/PolyDataToImageDataStencil/
1 Like
Thank you for the reply! I will take a look
Thank you, I will check this