corrected badarg test of findchessboardcorners (thanks to Pieter-Jan Busschaert)
This commit is contained in:
parent
c82252035f
commit
820c5941fc
@ -83,7 +83,8 @@ protected:
|
||||
cvFindChessboardCorners( &arr, pattern_size, out_corners, out_corner_count, flags );
|
||||
else
|
||||
cvDrawChessboardCorners( &drawCorImg, pattern_size,
|
||||
(CvPoint2D32f*)&corners[0], (int)corners.size(), was_found);
|
||||
(CvPoint2D32f*)(corners.empty() ? 0 : &corners[0]),
|
||||
(int)corners.size(), was_found);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user