mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 19:44:14 +08:00
Shadow masks changed to single channel (#985)
since rest of the patterns are single channel, the masks should be as well.
This commit is contained in:

committed by
Vadim Pisarevsky

parent
1a26f9956c
commit
6eb57fea65
@@ -367,8 +367,8 @@ void GrayCodePattern_Impl::getImagesForShadowMasks( InputOutputArray blackImage,
|
|||||||
Mat& blackImage_ = *( Mat* ) blackImage.getObj();
|
Mat& blackImage_ = *( Mat* ) blackImage.getObj();
|
||||||
Mat& whiteImage_ = *( Mat* ) whiteImage.getObj();
|
Mat& whiteImage_ = *( Mat* ) whiteImage.getObj();
|
||||||
|
|
||||||
blackImage_ = Mat( params.height, params.width, CV_8UC3, Scalar( 0, 0, 0 ) );
|
blackImage_ = Mat( params.height, params.width, CV_8U, Scalar( 0 ) );
|
||||||
whiteImage_ = Mat( params.height, params.width, CV_8UC3, Scalar( 255, 255, 255 ) );
|
whiteImage_ = Mat( params.height, params.width, CV_8U, Scalar( 255 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// For a (x,y) pixel of the camera returns the corresponding projector's pixel
|
// For a (x,y) pixel of the camera returns the corresponding projector's pixel
|
||||||
|
Reference in New Issue
Block a user