fixed colorizing disparity

This commit is contained in:
Maria Dimashova 2011-02-17 09:29:29 +00:00
parent 9c05a74fee
commit faee18961d

View File

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