Skip to content

stackBlur caused the program to crash #25498

@LiuPeiqiCN

Description

@LiuPeiqiCN

System Information

OpenCV python version: 4.8.0
Operating System / Platform: Win11

Detailed description

Program crash when the kernel size is too large. Maybe we must limit max kernel size to improve robustness.

Steps to reproduce

cv::Mat test(346, 240, CV_8UC3);
cv::stackBlur(test, test, cv::Size(741, 741));

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions