Commit 820c5941 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

corrected badarg test of findchessboardcorners (thanks to Pieter-Jan Busschaert)

parent c8225203
...@@ -83,7 +83,8 @@ protected: ...@@ -83,7 +83,8 @@ protected:
cvFindChessboardCorners( &arr, pattern_size, out_corners, out_corner_count, flags ); cvFindChessboardCorners( &arr, pattern_size, out_corners, out_corner_count, flags );
else else
cvDrawChessboardCorners( &drawCorImg, pattern_size, cvDrawChessboardCorners( &drawCorImg, pattern_size,
(CvPoint2D32f*)&corners[0], (int)corners.size(), was_found); (CvPoint2D32f*)(corners.empty() ? 0 : &corners[0]),
(int)corners.size(), was_found);
} }
}; };
......
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