fixed bug in StereoBeliefPropagation with user allocated disparity
authorVladislav Vinogradov <no@email>
Tue, 24 Aug 2010 09:36:25 +0000 (09:36 +0000)
committerVladislav Vinogradov <no@email>
Tue, 24 Aug 2010 09:36:25 +0000 (09:36 +0000)
modules/gpu/src/beliefpropagation_gpu.cpp

index 2bc82e1..01700b5 100644 (file)
@@ -237,7 +237,7 @@ namespace
             out = ((disp.type() == CV_16S) ? disp : (out.create(rows, cols, CV_16S), out));\r
             out = zero;\r
 \r
-            bp::output(rthis.msg_type, u, d, l, r, datas.front(), disp, stream);\r
+            bp::output(rthis.msg_type, u, d, l, r, datas.front(), out, stream);\r
 \r
             if (disp.type() != CV_16S)\r
                 out.convertTo(disp, disp.type());\r