mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +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);
|
||||
findMinEnclosingTriangle(polygon, resultingTriangle, area);
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user