Skip to content

Commit 6eb57fe

Browse files
tistatosvpisarev
authored andcommitted
Shadow masks changed to single channel (#985)
since rest of the patterns are single channel, the masks should be as well.
1 parent 1a26f99 commit 6eb57fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/structured_light/src/graycodepattern.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ void GrayCodePattern_Impl::getImagesForShadowMasks( InputOutputArray blackImage,
367367
Mat& blackImage_ = *( Mat* ) blackImage.getObj();
368368
Mat& whiteImage_ = *( Mat* ) whiteImage.getObj();
369369

370-
blackImage_ = Mat( params.height, params.width, CV_8UC3, Scalar( 0, 0, 0 ) );
371-
whiteImage_ = Mat( params.height, params.width, CV_8UC3, Scalar( 255, 255, 255 ) );
370+
blackImage_ = Mat( params.height, params.width, CV_8U, Scalar( 0 ) );
371+
whiteImage_ = Mat( params.height, params.width, CV_8U, Scalar( 255 ) );
372372
}
373373

374374
// For a (x,y) pixel of the camera returns the corresponding projector's pixel

0 commit comments

Comments
 (0)