Shadow masks changed to single channel (#985)

since rest of the patterns are single channel, the masks should be as
well.
pull/991/head
Erik Sandrén 8 years ago committed by Vadim Pisarevsky
parent 1a26f9956c
commit 6eb57fea65
  1. 4
      modules/structured_light/src/graycodepattern.cpp

@ -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

Loading…
Cancel
Save