提交 9130d5ba 编写于 作者: V Vadim Pisarevsky

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册