Commit 9130d5ba authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

put extra check to cv::findChessboardCorners (ticket #648)

parent 7f3ae3a0
......@@ -1904,7 +1904,8 @@ bool findChessboardCorners( const Mat& image, Size patternSize,
CvMat _image = image;
bool ok = cvFindChessboardCorners(&_image, patternSize,
(CvPoint2D32f*)&corners[0], &count, flags ) > 0;
corners.resize(count);
if(count >= 0)
corners.resize(count);
return ok;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment