mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
Update min_enclosing_triangle.cpp
This commit is contained in:
parent
190d00ea3e
commit
3f3e6ba739
@ -727,7 +727,7 @@ static bool isValidMinimalTriangle(const cv::Point2f &vertexA, const cv::Point2f
|
||||
? (areEqualPoints(midpointSideB, polygon[b]))
|
||||
: (isPointOnLineSegment(midpointSideB, sideBStartVertex, sideBEndVertex));
|
||||
|
||||
bool sideCValid = isPointOnLineSegment(midpointSideC, sideCStartVertex, sideCEndVertex);
|
||||
bool sideCValid = (validationFlag == VALIDATION_SIDES_FLUSH) || isPointOnLineSegment(midpointSideC, sideCStartVertex, sideCEndVertex);
|
||||
|
||||
return (sideAValid && sideBValid && sideCValid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user