Skip to content

Commit

Permalink
Merge pull request opencv#22717 from alalek:issue_22716
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Oct 31, 2022
2 parents c0a84dc + 028d4d8 commit b418eb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/imgproc/src/smooth.dispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b418eb1

Please sign in to comment.