SlicerRt / SlicerRT

Open-source toolkit for radiation therapy research, an extension of 3D Slicer. Features include DICOM-RT import/export, dose volume histogram, dose accumulation, external beam planning (TPS), structure comparison and morphology, isodose line/surface generation, etc.
https://slicerrt.org
127 stars 60 forks source link

RTStruct Export Missing Segments #137

Closed Sunderlandkyl closed 4 years ago

Sunderlandkyl commented 4 years ago

Original report: https://discourse.slicer.org/t/rtstruct-export-missing-segmentation-names/10985/6 Data: https://github.com/ryanmdavis/TempDeleteMe

Importing the scene from the Data link above, and exporting the segmentation to an RTSS will result in the disappearance of a large number of segments. Importing the exported DICOM will shows that the contours from those segments are instead incorporated into the remaining segments.

Sunderlandkyl commented 4 years ago

Initially this issue was suspected to be related to the shared binary labelmaps, however the original data is not a shared labelmap, and the representation seems to be exported correctly even if it was.

This is also reproducible in Slicer 4.10.2.

The problem seems to be in Plastimatch. Many of the structures are pruned from the RTSS for having 0 contours. It might be that the contours are being extracted to the wrong structure (probably during cxt_extract).

Sunderlandkyl commented 4 years ago

Tested, and this issue is now fixed with the update to Plastimatch (5921094).

Thanks @gregsharp!