mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Changed the signature of the minEnclosingTriangle function such that it returns the area automatically. Moreover, the overloaded function was no longer required so it was removed. Sample code, documentation and unit tests were updated correspondingly.
This commit is contained in:
@@ -801,7 +801,6 @@ protected:
|
||||
|
||||
std::vector<cv::Point2f> convexPolygon;
|
||||
std::vector<cv::Point2f> triangle;
|
||||
double area;
|
||||
};
|
||||
|
||||
|
||||
@@ -827,7 +826,7 @@ void CV_MinTriangleTest::run_func()
|
||||
|
||||
cv::cvarrToMat(points).convertTo(pointsAsVector, CV_32F);
|
||||
|
||||
cv::minEnclosingTriangle(pointsAsVector, triangle, area);
|
||||
cv::minEnclosingTriangle(pointsAsVector, triangle);
|
||||
cv::convexHull(pointsAsVector, convexPolygon, true, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user