Hi
Is it possible to create an RT Structure file from the binary mask in 3D Slicer?
Hi
Is it possible to create an RT Structure file from the binary mask in 3D Slicer?
DICOM RT structure set is very poor representation of segmentation data, so only create them if you really don’t have any other option at all (e.g., you must export data that can be read into your RT treatment planning system).
You can export a segmentation as RT structure set using standard DICOM export feature after you installed SlicerRT extension.
Exactly. I trained an auto segmentation model and model output is a binary mask, so as you mentioned TPS required RT Structure files.
Thank you
Hello again
As you said I exported a segmentation as RT Structure in 3D Slicer, but how can I do this through a python code?
Is there any Python library for this purpose?
Regards
All Slicer features are accessible via Python scripting. You can find lots of examples in Slicer Script Repository. DICOM export: https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Export_a_volume_to_DICOM_file_format