Commit 6d83048e authored by Alexander Karsakov's avatar Alexander Karsakov

Fixed incorrect calculation of element size in OCL.(Mul/Div).Mat_Scalar_Scale.

parent 9c5bd852
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment