3D model -> DICOM/nii conversion

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:

Here’s an example that uses it:

1 Like

Thank you for the reply! I will take a look

Thank you, I will check this