mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
Merge pull request #8388 from ottogin:calib3d
This commit is contained in:
commit
a83a1cafa7
@ -442,7 +442,7 @@ int cvFindChessboardCorners( const void* arr, CvSize pattern_size,
|
||||
|
||||
Mat img = cvarrToMat((CvMat*)arr).clone();
|
||||
|
||||
if( img.depth() != CV_8U || (img.channels() != 1 && img.channels() != 3) )
|
||||
if( img.depth() != CV_8U || (img.channels() != 1 && img.channels() != 3 && img.channels() != 4) )
|
||||
CV_Error( CV_StsUnsupportedFormat, "Only 8-bit grayscale or color images are supported" );
|
||||
|
||||
if( pattern_size.width <= 2 || pattern_size.height <= 2 )
|
||||
|
Loading…
Reference in New Issue
Block a user