Commit fa3c6821 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

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

parent 654d4476
......@@ -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());
......
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