opencv / opencv

Open Source Computer Vision Library
https://opencv.org
Apache License 2.0
75.95k stars 55.62k forks source link

fix statckblur big kernel case #25513

Closed zihaomu closed 2 weeks ago

zihaomu commented 2 weeks ago

fix the issue: https://github.com/opencv/opencv/issues/25498

kernelSize = radius*2 + 1. If the kernel size is bigger then width, we need to set a bigger buffer for it.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request