Commit 29c186a0 authored by Suleyman TURKMEN's avatar Suleyman TURKMEN Committed by GitHub

Update min_enclosing_triangle.cpp

parent baf9e32a
......@@ -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);
}
cv::Mat(resultingTriangle).copyTo(triangle);
}
//! Create the convex hull of the given set of points
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment