mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 22:00:25 +08:00
Fixed incorrect calculation of element size in OCL.(Mul/Div).Mat_Scalar_Scale.
This commit is contained in:
parent
9c5bd85247
commit
6d83048ec3
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user