added cv::convexityDefects (ticket #796)

This commit is contained in:
Vadim Pisarevsky
2012-03-29 19:42:47 +00:00
parent 959c37fccf
commit e36ad50825
2 changed files with 42 additions and 1 deletions

View File

@@ -1029,6 +1029,8 @@ CV_EXPORTS_W double matchShapes( InputArray contour1, InputArray contour2,
//! computes convex hull for a set of 2D points.
CV_EXPORTS_W void convexHull( InputArray points, OutputArray hull,
bool clockwise=false, bool returnPoints=true );
//! computes the contour convexity defects
CV_EXPORTS_W void convexityDefects( InputArray points, InputArray hull, OutputArray defects );
//! returns true iff the contour is convex. Does not support contours with self-intersection
CV_EXPORTS_W bool isContourConvex( InputArray contour );