1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Merge pull request #25725 from asmorkalov:as/intersectConvexConvex_fix

Fixed result buffer overflow in intersectConvexConvex_ for non-convex input
This commit is contained in:
Alexander Smorkalov
2024-06-16 17:07:01 +03:00
committed by GitHub
3 changed files with 64 additions and 9 deletions
+1 -1
View File
@@ -4251,7 +4251,7 @@ Examples of how intersectConvexConvex works
When false, no intersection is found. If the polygons share a side or the vertex of one polygon lies on an edge
of the other, they are not considered nested and an intersection will be found regardless of the value of handleNested.
@returns Absolute value of area of intersecting polygon
@returns Area of intersecting polygon. May be negative, if algorithm has not converged, e.g. non-convex input.
@note intersectConvexConvex doesn't confirm that both polygons are convex and will return invalid results if they aren't.
*/