fixed corners emptiness check in drawChessboardCorners (thanks to thomask)

This commit is contained in:
Vadim Pisarevsky 2011-04-27 06:59:59 +00:00
parent ce808af594
commit d95bf478fe

View File

@ -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);