- Added the minEnclosingTriangle function declaration to the imgproc header

- Added the source code for the function in the separate file min_enclosing_triangle.cpp
pull/1470/head
Ovidiu Parvu 11 years ago
parent 77a2529eb7
commit e6b58c4e79
  1. 4
      modules/imgproc/include/opencv2/imgproc.hpp
  2. 1209
      modules/imgproc/src/min_enclosing_triangle.cpp

@ -1451,6 +1451,10 @@ CV_EXPORTS_W void boxPoints(RotatedRect box, OutputArray points);
CV_EXPORTS_W void minEnclosingCircle( InputArray points,
CV_OUT Point2f& center, CV_OUT float& radius );
//! computes the minimal enclosing triangle for a convex polygon defined by at least three points
CV_EXPORTS_W void minEnclosingTriangle( const std::vector<Point2f> &convexPolygon,
CV_OUT std::vector<Point2f> &triangle, CV_OUT double& area );
//! matches two contours using one of the available algorithms
CV_EXPORTS_W double matchShapes( InputArray contour1, InputArray contour2,
int method, double parameter );

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save