Removed the cvMinEnclosingTriangle function since the C API will be deprecated starting with OpenCV 3.0

This commit is contained in:
Ovidiu Parvu
2013-09-19 15:37:10 +01:00
parent 21390d806f
commit 52cdae6e2b
3 changed files with 4 additions and 37 deletions

View File

@@ -1310,29 +1310,4 @@ static bool lessOrEqual(double number1, double number2) {
return ((number1 < number2) || (almostEqual(number1, number2)));
}
};
////////////////////////////////////////////// C API ///////////////////////////////////////////
//! Find the minimum enclosing triangle and its area for the given set of points
/*!
* @param points Set of points
* @param triangle Minimum area triangle enclosing the given set of points
* @param area Area of the minimum area enclosing triangle
*/
CV_IMPL void
cvMinEnclosingTriangle( const CvArr* _points, CvArr* _triangle, double* _area ) {
cv::Mat points = cv::cvarrToMat(_points);
cv::Mat triangle = cv::cvarrToMat(_triangle);
double area = 0;
cv::minEnclosingTriangle(points, triangle, area);
if (_area) {
*_area = area;
}
}
/* End of file. */
};