-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
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
Panic when call blur
with sigma == 0.0
#983
Comments
I thinks this should be changed to something like |
This may be caused by having an empty kernel support, hence the The proposed fix, with a slight change, should be good enough then:
|
@HeroicKatora Thank you. I forgot to change the operator. However, image-rs/imageproc#331 was fixed by explicitly rejecting sigama <= 0.0. Is there a need to maintain consistency between these two functions? (But this seems to lead a breaking change on this crate |
Right. That's something to consider for the future. It also relates to #977 in that removing it from this crate would certainly make it consistent ;) But it would be very prompt to do it because of a bug, the issue should involve better planning. |
This happens in when call
image::imageops::blur
with sigma == 0.0,however(edit: seee image-rs/imageproc#331 )imageproc::filter::gaussian_blur_f32
works wellExpected
Nothing happen
Actual behaviour
It panicked
Reproduction steps
Backtrace
The text was updated successfully, but these errors were encountered: