fixed bug in StereoBeliefPropagation with user allocated disparity

This commit is contained in:
Vladislav Vinogradov
2010-08-24 09:36:25 +00:00
parent eee3a35133
commit 4104c3fd0b

View File

@@ -237,7 +237,7 @@ namespace
out = ((disp.type() == CV_16S) ? disp : (out.create(rows, cols, CV_16S), out)); out = ((disp.type() == CV_16S) ? disp : (out.create(rows, cols, CV_16S), out));
out = zero; 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) if (disp.type() != CV_16S)
out.convertTo(disp, disp.type()); out.convertTo(disp, disp.type());