rt-utils icon indicating copy to clipboard operation
rt-utils copied to clipboard

add ability to retrieve ROI names in a case insensitive way

Open raffaelespinoni opened this issue 4 years ago • 2 comments

HI, i'm experiencing problem with low quality ROI labels (written like this: Heart, heart, HEART), maybe an option to extract case insensitive ROIs could be useful to other also

I have a quick_fix in rtstruct.py:98 if structure_roi.ROIName.casefold() == name.casefold():

maybe a more general option while using ".get_roi__mask_by_name" could be better

raffaelespinoni avatar Feb 04 '22 13:02 raffaelespinoni

Hi @raffaelespinoni, I'm thinking we add an option in get roi_mask_by_name to enable case insensitivity using the code you've provided. I'll try to get this done for this wednesday but feel free to submit your own pull request if you'd like :)

asim-shrestha avatar Feb 21 '22 22:02 asim-shrestha

Thank's, i'm opening a PR

raffaelespinoni avatar Feb 22 '22 07:02 raffaelespinoni