Merge pull request #22717 from alalek:issue_22716

This commit is contained in:
Alexander Alekhin 2022-10-31 17:03:43 +00:00
commit b418eb112c

View File

@ -635,6 +635,9 @@ void GaussianBlur(InputArray _src, OutputArray _dst, Size ksize,
return;
}
if (sigma2 <= 0)
sigma2 = sigma1;
bool useOpenCL = ocl::isOpenCLActivated() && _dst.isUMat() && _src.dims() <= 2 &&
_src.rows() >= ksize.height && _src.cols() >= ksize.width &&
ksize.width > 1 && ksize.height > 1;