We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Using values other than (7, 7) for the kSize in the gaussianBlurAsync method results in a crash.
kSize
gaussianBlurAsync
To Reproduce Steps to reproduce the behavior:
blur = await cv.gaussianBlurAsync(im, (7, 7), 2, sigmaY: 2);
blur = await cv.gaussianBlurAsync(im, (8, 8), 2, sigmaY: 2);
If I set the kSize back to (7, 7) it works, but any other value doesn't.
Expected behavior The blur method should not crash with values other than (7, 7).
Screenshots If applicable, add screenshots to help explain your problem.
Desktop:
Additional context
The error:
Exception has occurred. CvException (CvException(code: -215, msg:OpenCV(4.10.0) D:\a\opencv.full\opencv.full\opencv\modules\imgproc\src\smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'cv::createGaussianKernels' ) in cv::createGaussianKernels of file D:\a\opencv.full\opencv.full\opencv\modules\imgproc\src\smooth.dispatch.cpp:294)
Maybe this is related to #180?
The text was updated successfully, but these errors were encountered:
@Correct-Syntax Have you tried other odd values like (9, 9), (11, 9), (15, 15)? Please note that the kernel size of gaussianBlur must be ODD, refer to https://docs.opencv.org/4.x/d4/d86/group__imgproc__filter.html#gae8bdcd9154ed5ca3cbc1766d960f45c1
Sorry, something went wrong.
@rainyl Ah, I see. I'm used to the Python version of OpenCV where they evidently silently correct the values, not matter what is specified. Thank you.
No branches or pull requests
Describe the bug
Using values other than (7, 7) for the
kSize
in thegaussianBlurAsync
method results in a crash.To Reproduce
Steps to reproduce the behavior:
blur = await cv.gaussianBlurAsync(im, (7, 7), 2, sigmaY: 2);
toblur = await cv.gaussianBlurAsync(im, (8, 8), 2, sigmaY: 2);
If I set the kSize back to (7, 7) it works, but any other value doesn't.
Expected behavior
The blur method should not crash with values other than (7, 7).
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop:
Additional context
The error:
Maybe this is related to #180?
The text was updated successfully, but these errors were encountered: