Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Converts rectangles to polygon #132

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

dbrembilla
Copy link
Contributor

Closes #130
This MR makes rectangles polygons, as before only 4 points were considered in the segmentation.
To test this, create a rectangle shaped annotation with the tool, and generate a report for the image. You should see that in the segmentation part, are 10 elements -> 5 points.

In order to be correctly classified as polygon and not as a line, a rectangle should be identified by 5 points as the first point should be added at the end of the point array
@dbrembilla dbrembilla requested a review from mzur October 4, 2024 10:31
@dbrembilla dbrembilla self-assigned this Oct 4, 2024
Copy link
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works, thanks!

@mzur mzur merged commit 1363f5f into master Oct 7, 2024
2 checks passed
@mzur mzur deleted the rectangle-polygon-conversion branch October 7, 2024 11:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rectangle is not converted to polygon
2 participants