From: Suleyman TURKMEN Date: Wed, 11 Oct 2017 14:48:19 +0000 (+0300) Subject: Update min_enclosing_triangle.cpp X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~510^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29c186a02214a080b55cf47a756fbc06cd4f35b4;p=platform%2Fupstream%2Fopencv.git Update min_enclosing_triangle.cpp --- diff --git a/modules/imgproc/src/min_enclosing_triangle.cpp b/modules/imgproc/src/min_enclosing_triangle.cpp index 702d148..2e04362 100644 --- a/modules/imgproc/src/min_enclosing_triangle.cpp +++ b/modules/imgproc/src/min_enclosing_triangle.cpp @@ -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