Skip to content

Conversation

@drsantam
Copy link

When a RTStructureset has a single or two contour points a polygon cannot be drawn. This is technically a correct dicom so we do not want to delete these points. This fix allows the contour points to be represented by a circle of 2 pixels if there is a single point and a line if there are 2 points. For 3 or more points it will create the polygon as was done previously.

drsantam and others added 2 commits November 25, 2025 06:54
Add support for contours with fewer than 3 points by drawing circles for single-point contours and lines for two-point contours, instead of attempting to fill them as polygons which would fail.
Handle single and two-point contours in slice mask generation
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

Successfully merging this pull request may close these issues.

1 participant