put extra check to cv::findChessboardCorners (ticket #648)
This commit is contained in:
@@ -1904,6 +1904,7 @@ bool findChessboardCorners( const Mat& image, Size patternSize,
|
||||
CvMat _image = image;
|
||||
bool ok = cvFindChessboardCorners(&_image, patternSize,
|
||||
(CvPoint2D32f*)&corners[0], &count, flags ) > 0;
|
||||
if(count >= 0)
|
||||
corners.resize(count);
|
||||
return ok;
|
||||
}
|
||||
|
Reference in New Issue
Block a user