Commit 4104c3fd authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed bug in StereoBeliefPropagation with user allocated disparity

parent eee3a351
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment