Add ROIs from polygons
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 256
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing add_roi API and its mask-based behavior. Define the polygon-input behavior around the stated ROI annotation coordinates, then verify that it produces the intended DICOM RTStruct ROI while preserving the existing mask path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100