Update min_enclosing_triangle.cpp

pull/5331/head
Suleyman TURKMEN 10 years ago
parent 190d00ea3e
commit 3f3e6ba739
  1. 2
      modules/imgproc/src/min_enclosing_triangle.cpp

@ -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…
Cancel
Save