qurit / rt-utils

A minimal Python library to facilitate the creation and manipulation of DICOM RTStructs.
MIT License
191 stars 56 forks source link

Allow adding empty ROIs #56

Closed mathiser closed 1 year ago

mathiser commented 2 years ago

Dear rt-utils devs, Does the dicom format allow adding empty ROIs? This would be extremely useful to be able to: When a template rtstruct is made, our deep learning segmentation model does not always predict something for all labels. Thus, we just need to remember to add them manually later. With the possibility to add empty ROIs this problem is solved and making rt-utils even more useful.

Mathis

asim-shrestha commented 1 year ago

Hey again @mathiser, thanks for reaching out. What exactly do you mean by empty ROI's? Would you be able to use the existing add_roi function with just a completely empty 3D mask?

mathiser commented 1 year ago

@asim-shrestha, Heading over here now :) Yes, that was the idea - if it is possible. I don't know much about the DICOM format and if this is even supported. But by being able to generate empty structures, you can use rt-utils to generate template structures, which is highly valuable.

Mathis

asim-shrestha commented 1 year ago

@mathiser Updated and packaged https://pypi.org/project/rt-utils/1.2.5/!

mathiser commented 1 year ago

That's awesome, @asim-shrestha! Looking forward to check it out!