projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c05a74
)
fixed colorizing disparity
author
Maria Dimashova
<no@email>
Thu, 17 Feb 2011 09:29:29 +0000
(09:29 +0000)
committer
Maria Dimashova
<no@email>
Thu, 17 Feb 2011 09:29:29 +0000
(09:29 +0000)
samples/cpp/kinect_maps.cpp
patch
|
blob
|
history
diff --git
a/samples/cpp/kinect_maps.cpp
b/samples/cpp/kinect_maps.cpp
index f3b936a74584fc9813dfe099bc9e0684261b33d3..432b29aee9d5a71aa7e3d73bba62c28939aa65d9 100644
(file)
--- a/
samples/cpp/kinect_maps.cpp
+++ b/
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++ )