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

pull/13383/head
Vadim Pisarevsky 14 years ago
parent c82252035f
commit 820c5941fc
  1. 3
      modules/calib3d/test/test_chesscorners_badarg.cpp

@ -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…
Cancel
Save