Skip to content

Commit a83a1ca

Browse files
committed
Merge pull request opencv#8388 from ottogin:calib3d
2 parents b6e8de2 + 3bf5d34 commit a83a1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/calib3d/src/calibinit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ int cvFindChessboardCorners( const void* arr, CvSize pattern_size,
442442

443443
Mat img = cvarrToMat((CvMat*)arr).clone();
444444

445-
if( img.depth() != CV_8U || (img.channels() != 1 && img.channels() != 3) )
445+
if( img.depth() != CV_8U || (img.channels() != 1 && img.channels() != 3 && img.channels() != 4) )
446446
CV_Error( CV_StsUnsupportedFormat, "Only 8-bit grayscale or color images are supported" );
447447

448448
if( pattern_size.width <= 2 || pattern_size.height <= 2 )

0 commit comments

Comments
 (0)