Skip to content

Commit 2e056fb

Browse files
committed
Merge pull request opencv#6854 from sturkmen72:patch-8
2 parents 9734ee1 + 3f3e6ba commit 2e056fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/imgproc/src/min_enclosing_triangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ static bool isValidMinimalTriangle(const cv::Point2f &vertexA, const cv::Point2f
727727
? (areEqualPoints(midpointSideB, polygon[b]))
728728
: (isPointOnLineSegment(midpointSideB, sideBStartVertex, sideBEndVertex));
729729

730-
bool sideCValid = isPointOnLineSegment(midpointSideC, sideCStartVertex, sideCEndVertex);
730+
bool sideCValid = (validationFlag == VALIDATION_SIDES_FLUSH) || isPointOnLineSegment(midpointSideC, sideCStartVertex, sideCEndVertex);
731731

732732
return (sideAValid && sideBValid && sideCValid);
733733
}

0 commit comments

Comments
 (0)