From 6d83048ec372080e62727bc43d8eaa5c9404d8cb Mon Sep 17 00:00:00 2001 From: Alexander Karsakov Date: Mon, 24 Feb 2014 15:10:00 +0400 Subject: [PATCH] Fixed incorrect calculation of element size in OCL.(Mul/Div).Mat_Scalar_Scale. --- modules/core/src/arithm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/arithm.cpp b/modules/core/src/arithm.cpp index 706d346c39..a8374521f2 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();