Unexpected intersection bounds and areas #908
Unanswered
tksharpless
asked this question in
Q&A
Replies: 1 comment
-
Do you have enough precision? See e.g. this. If that doesn't help, then maybe you'd like to share some code and/or data? (Ideally, a minimal reproducible example.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Clipper2 to intersect simple, non-convex closed polygons (typically with 10 to 100 float vertices), and OpenCV contourArea() to measure them.
I've noticed that the calculated area of the intersection is sometimes as much as 3% larger than the area of the smaller input polygon, and that its bounding box is often slightly larger that the intersection of the bounding boxes of the inputs.
Is there a reasonable explanation for this?
Beta Was this translation helpful? Give feedback.
All reactions