handle the non-detected board case in cv::drawChessboardCorners.
This commit is contained in:
parent
654d447661
commit
fa3c6821ac
@ -1909,6 +1909,8 @@ void drawChessboardCorners( Mat& image, Size patternSize,
|
|||||||
const Mat& corners,
|
const Mat& corners,
|
||||||
bool patternWasFound )
|
bool patternWasFound )
|
||||||
{
|
{
|
||||||
|
if( corners.cols == 0 || corners.rows == 0 )
|
||||||
|
return;
|
||||||
CvMat _image = image;
|
CvMat _image = image;
|
||||||
CV_Assert((corners.cols == 1 || corners.rows == 1) &&
|
CV_Assert((corners.cols == 1 || corners.rows == 1) &&
|
||||||
corners.type() == CV_32FC2 && corners.isContinuous());
|
corners.type() == CV_32FC2 && corners.isContinuous());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user