提交 12715c21 编写于 作者: V Vadim Pisarevsky

fixed mixed-type arithmetic operations (ticket #1224)

上级 0db73575
......@@ -1291,7 +1291,7 @@ void arithm_op(InputArray _src1, InputArray _src2, OutputArray _dst,
uchar *buf, *maskbuf = 0, *buf1 = 0, *buf2 = 0, *wbuf = 0;
size_t bufesz = (cvtsrc1 ? wsz : 0) + (cvtsrc2 || haveScalar ? wsz : 0) + (cvtdst ? wsz : 0) + (haveMask ? dsz : 0);
_dst.create(src1.dims, src1.size, src1.type());
_dst.create(src1.dims, src1.size, dtype);
Mat dst = _dst.getMat();
BinaryFunc func = tab[CV_MAT_DEPTH(wtype)];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册