From: Alexander Karsakov Date: Mon, 24 Feb 2014 11:10:00 +0000 (+0400) Subject: Fixed incorrect calculation of element size in OCL.(Mul/Div).Mat_Scalar_Scale. X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~591^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d83048ec372080e62727bc43d8eaa5c9404d8cb;p=profile%2Fivi%2Fopencv.git Fixed incorrect calculation of element size in OCL.(Mul/Div).Mat_Scalar_Scale. --- diff --git a/modules/core/src/arithm.cpp b/modules/core/src/arithm.cpp index 706d346..a837452 100644 --- a/modules/core/src/arithm.cpp +++ b/modules/core/src/arithm.cpp @@ -1364,7 +1364,7 @@ static bool ocl_arithm_op(InputArray _src1, InputArray _src2, OutputArray _dst, if( haveScalar ) { - size_t esz = CV_ELEM_SIZE(wtype)*scalarcn; + size_t esz = CV_ELEM_SIZE1(wtype)*scalarcn; double buf[4]={0,0,0,0}; Mat src2sc = _src2.getMat();