converted fitline to C++, fixed Mat::checkVector().

This commit is contained in:
Vadim Pisarevsky
2013-01-21 01:07:47 +04:00
parent c197a46e7e
commit c2241dccc5
4 changed files with 101 additions and 206 deletions

View File

@@ -584,7 +584,7 @@ void convexHull( InputArray _points, OutputArray _hull, bool clockwise, bool ret
void convexityDefects( InputArray _points, InputArray _hull, OutputArray _defects )
{
Mat points = _points.getMat();
int i, j = 0, index, npoints = points.checkVector(2, CV_32S);
int i, j = 0, npoints = points.checkVector(2, CV_32S);
CV_Assert( npoints >= 0 );
if( npoints <= 3 )