Commit d95bf478 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed corners emptiness check in drawChessboardCorners (thanks to thomask)

parent ce808af5
...@@ -1917,7 +1917,7 @@ void cv::drawChessboardCorners( InputOutputArray _image, Size patternSize, ...@@ -1917,7 +1917,7 @@ void cv::drawChessboardCorners( InputOutputArray _image, Size patternSize,
bool patternWasFound ) bool patternWasFound )
{ {
Mat corners = _corners.getMat(); Mat corners = _corners.getMat();
if( !corners.empty() ) if( corners.empty() )
return; return;
CvMat c_image = _image.getMat(); CvMat c_image = _image.getMat();
int nelems = corners.checkVector(2, CV_32F, true); int nelems = corners.checkVector(2, CV_32F, true);
......
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