qurit / rt-utils

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

Add ROIs from polygons #77

Open zeakey opened 1 year ago

zeakey commented 1 year ago

Is there a way of adding ROI using polygons rather than masks?

I'm currently converting our ROI annotations to dicomrt. Our annotations are polygon coordinates.

I think it would be straightforward to have a API that accepts polygon as input, although I can convert my polygons into mask and use the existing add_roi API.

I can raise a PR to do this if you are feeling comfortable with it.

asim-shrestha commented 1 year ago

Hey @zeakey,

This sounds like a great feature. That would be awesome if you could raise a PR, thank you!

zeakey commented 1 year ago

Hey @asim-shrestha , I've created a PR implementing that feature. Do you mind have a look at it?

asim-shrestha commented 1 year ago

Thanks for doing this, will have a look :)

And apologies for the delay, had been on vacation :)