From 4104c3fd0bd18a25f1f0ad011a46b14d64b8a5b7 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Tue, 24 Aug 2010 09:36:25 +0000 Subject: [PATCH] fixed bug in StereoBeliefPropagation with user allocated disparity --- modules/gpu/src/beliefpropagation_gpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gpu/src/beliefpropagation_gpu.cpp b/modules/gpu/src/beliefpropagation_gpu.cpp index 2bc82e1..01700b5 100644 --- a/modules/gpu/src/beliefpropagation_gpu.cpp +++ b/modules/gpu/src/beliefpropagation_gpu.cpp @@ -237,7 +237,7 @@ namespace out = ((disp.type() == CV_16S) ? disp : (out.create(rows, cols, CV_16S), out)); out = zero; - bp::output(rthis.msg_type, u, d, l, r, datas.front(), disp, stream); + bp::output(rthis.msg_type, u, d, l, r, datas.front(), out, stream); if (disp.type() != CV_16S) out.convertTo(disp, disp.type()); -- 2.7.4