fixed corners emptiness check in drawChessboardCorners (thanks to thomask)

pull/13383/head
Vadim Pisarevsky 14 years ago
parent ce808af594
commit d95bf478fe
  1. 2
      modules/calib3d/src/calibinit.cpp

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

Loading…
Cancel
Save