Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zihaomu
Copy link
Member

@zihaomu zihaomu commented Apr 30, 2024

fix the issue: #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

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@zihaomu zihaomu linked an issue Apr 30, 2024 that may be closed by this pull request
4 tasks
@zihaomu zihaomu added the bug label Apr 30, 2024
else
{
size_t bufSize = CN * (width + radius) * sizeof(TBuf) + 2 * CN * sizeof(TBuf);
size_t bufSize = CN * (width + kernelSize) * sizeof(TBuf) + 2 * CN * sizeof(TBuf);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@asmorkalov asmorkalov added this to the 4.10.0 milestone Apr 30, 2024
@asmorkalov asmorkalov self-requested a review April 30, 2024 08:31
@asmorkalov asmorkalov self-assigned this Apr 30, 2024
@asmorkalov asmorkalov merged commit 1f6f092 into opencv:4.x May 1, 2024
@mshabunin mshabunin mentioned this pull request Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stackBlur caused the program to crash

2 participants