1
0
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:
Ovidiu Parvu
2013-09-19 16:22:30 +01:00
parent 52cdae6e2b
commit e324446c70
4 changed files with 11 additions and 33 deletions
+1 -2
View File
@@ -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);
}