qurit / rt-utils

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

Delete ROI #46

Open IlvaHou55 opened 2 years ago

IlvaHou55 commented 2 years ago

Hi,

I know there is a function to add a roi to the RT struct (add_roi), but is there also something similar for deleting a roi?

Thanks!

asim-shrestha commented 2 years ago

Hi @IlvaHou55, there isn't currently any functionality for this but it should be an easy addition. We can get this functionality in soon™

IlvaHou55 commented 2 years ago

Hi @asim-shrestha good to hear! I now worked around it by saving all separate ROIs I wanted to keep and added them to an empty RT-Struct. But a functionality in the code would work faster and is less prone to small mistakes :)