mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Update min_enclosing_triangle.cpp
This commit is contained in:
parent
baf9e32af3
commit
29c186a022
@ -322,12 +322,7 @@ static void findMinEnclosingTriangle(cv::InputArray points,
|
|||||||
|
|
||||||
createConvexHull(points, polygon);
|
createConvexHull(points, polygon);
|
||||||
findMinEnclosingTriangle(polygon, resultingTriangle, area);
|
findMinEnclosingTriangle(polygon, resultingTriangle, area);
|
||||||
|
cv::Mat(resultingTriangle).copyTo(triangle);
|
||||||
if (triangle.depth() == CV_32S) {
|
|
||||||
cv::Mat(resultingTriangle).convertTo(triangle,CV_32S);
|
|
||||||
} else {
|
|
||||||
cv::Mat(resultingTriangle).copyTo(triangle);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Create the convex hull of the given set of points
|
//! Create the convex hull of the given set of points
|
||||||
|
Loading…
Reference in New Issue
Block a user