I was using 4.10.2 to convert stl to DICOM. However, after update to 4.11.2 I could not fund functionality. Can anyone help me with this?
See step-by-step instructions for DICOM export here https://slicer.readthedocs.io/en/latest/user_guide/modules/dicom.html#export-data-from-the-scene-to-dicom-database
If you have any specific questions then let us know.
Can you please share the tip? Thank you!
Thank you for sharing. The file I need to convert is a stl file and when I follow the instruction (right-click to “Export to DICOM”) there is no option to select the export type in the bottom left of the export dialog. I need to convert the stl file to an RT structure set. Do you mind giving me more guidance?
You need to convert it to segmentation first. You also need the associated CT image - RT structure sets cannot be generated and interpreted without a referenced CT.
How do I create an associated CT image? Do I import one to the software? How do I make them associated? in 4.10.2, I only need to do “Mesh to Lable Map” and then I can export it as a DICOM file.
Thank you again for your help!
I assumed you already have a CT image that the STL model was derived from. You can of course create a fake CT for it, but to tell if it is the right answer, we would need to know what you would like to achieve at the end.
What is the overall goal of your project? Why do you need to convert STL file to DICOM RT structure set?
I use a 3D camera to capture the patient’s body contour which was truncated by CT (limited CT FOV). With the 3D captured body contour we can make up for the missing information. I want to import the 3D scan as an RT-struture to the TPS and fill up the missing tissue with the water.
or… can it be converted to a “CT scan”? I think it was working in that way in the old version?
Or… is there any chance I can download the 4.10.2?
You can load the CT, expand it using Crop volume module and a ROI, register it to the surface scan, and use Mask volume effect (provided by SegmentEditorExtraEffects extension) to fill the region inside the surface scan with 0 HU. You can then export this modified CT to DICOM and use it in your treatment planning system. I don’t think there is a need to export DICOM RT structure sets.
Do I have to load the CT? Can I just convert the stl to DICOM? I can register them in the TPS.
Dear @lassoan ,
I am dealing with a task much similar to the one of @archery .
I would like to ask you which is in your opinion the best/most efficient way to “register the CT to the surface scan”.
I am having some good results with the module “ModelRegistration” of IGT, that however works between models, and thus requires to convert somehow the whole CT to a model (I managed to do it via semi automatic segmentation of the whole CT).
Do you have any better suggestion?
For quick registration you can use register the CT to the surface scan based on 4-6 matching landmark points, using Fiducial registration wizard module in SlicerIGT extension.
You might improve registration further by creating a skin surface model from the CT using Segment Editor, extract relevant surface parts using Dynamic modeler module’s “Select by points” tool, and then use “Model registration” module to compute the registration. This requires clicking around in a couple of modules, but if you need to do this regularly then the process can be automated using Python scripting.
Dear @lassoan , thanks very much for the tips! I will go through them and eventually let you know in this post!
Have a nice new year!
i’m trying to take an STL model from a dicom CT skull, modify it and return it as a dicom file so i can use it in navigation. The idea is to load it onto the navigation and register it to the old CT, however when i’m stuck as the exported file has no images
Hi @lassoan, I am trying to do something similar to @archery. I would like to convert a STL file containing a segmentation of a bone back to a DICOM file similar to a CT scan for use in other software which deals with DICOM files. Is this possible? Thanks!
You can use the “Soft edge” option in “Mask volume” effect to make the edges smooth.
Yes, sure. See this topic: