fixed colorizing disparity

pull/13383/head
Maria Dimashova 14 years ago
parent 9c05a74fee
commit faee18961d
  1. 4
      samples/cpp/kinect_maps.cpp

@ -35,6 +35,10 @@ void colorizeDisparity( const Mat& gray, Mat& rgb, double maxDisp=-1.f, float S=
}
rgb.create( gray.size(), CV_8UC3 );
rgb = Scalar::all(0);
if( maxDisp < 1 )
return;
for( int y = 0; y < gray.rows; y++ )
{
for( int x = 0; x < gray.cols; x++ )

Loading…
Cancel
Save