Closed stephanemagnenat closed 4 months ago
Of course, if we want compatibility, we could keep the current functions as is and add _normalized
versions.
Thanks for the PR.
Please can you move the new tests you've added to regression.rs into the tests section of src/mod/filter.rs, and regenerate the expected outputs for the existing gaussian blur tests in regression.rs by running cargo test with the REGENERATE environment variable set: https://github.com/image-rs/imageproc/blob/4060ac1b28c694b66c4e28fb76d66685c1971647/tests/regression.rs#L8.
This is a useful fix and I suspect that I ignored the PR for long enough for @stephanemagnenat to lose interest! So I’ll merge as is and then fix the tests in a follow up PR.
Sorry I am busy with professional deadlines these days, feel free to merge anything that is helpful :-)
This corrects issue #529 by re-normalizing the Gaussian kernel. This breaks regression tests based on existing images, obviously.