Commit 6eb57fea authored by Erik Sandrén's avatar Erik Sandrén Committed by Vadim Pisarevsky

Shadow masks changed to single channel (#985)

since rest of the patterns are single channel, the masks should be as
well.
parent 1a26f995
...@@ -367,8 +367,8 @@ void GrayCodePattern_Impl::getImagesForShadowMasks( InputOutputArray blackImage, ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment