Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ROIs from polygons #77

Open
zeakey opened this issue Feb 8, 2023 · 3 comments
Open

Add ROIs from polygons #77

zeakey opened this issue Feb 8, 2023 · 3 comments

Comments

@zeakey
Copy link

zeakey commented Feb 8, 2023

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
Copy link
Contributor

Hey @zeakey,

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

@zeakey
Copy link
Author

zeakey commented Feb 19, 2023

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

@asim-shrestha
Copy link
Contributor

Thanks for doing this, will have a look :)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants