handle the non-detected board case in cv::drawChessboardCorners.

pull/13383/head
Vadim Pisarevsky 15 years ago
parent 654d447661
commit fa3c6821ac
  1. 2
      modules/calib3d/src/calibinit.cpp

@ -1909,6 +1909,8 @@ void drawChessboardCorners( Mat& image, Size patternSize,
const Mat& corners,
bool patternWasFound )
{
if( corners.cols == 0 || corners.rows == 0 )
return;
CvMat _image = image;
CV_Assert((corners.cols == 1 || corners.rows == 1) &&
corners.type() == CV_32FC2 && corners.isContinuous());

Loading…
Cancel
Save