fixed bugs in page locked memory allocation
avoid extra gpu memory allocation in BP and CSBP
This commit is contained in:
@@ -234,7 +234,7 @@ namespace
|
||||
if (disp.empty())
|
||||
disp.create(rows, cols, CV_16S);
|
||||
|
||||
out = ((disp.type() == CV_16S) ? disp : GpuMat(rows, cols, CV_16S));
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user