A fast linear-time gaussian blur based on http://blog.ivank.net/fastest-gaussian-blur.html.
This implementation was based on https://github.com/fschutt/fastblur.
These functions in-place blur a given slice of (presumably) image data, with any number of channels and the given blur radius. Performance is roughly linear time, and uses a single allocation for a backing store, of the same size as the input slice.
Example
Blur an RgbImage
Changes:
- Support any number of channels via const generics
- No allocation for passes list generation, uses const generic stack array
TODO:
- Support arbitrary stride, for over-aligned data or vertical image sub-slices
- Allow providing a backing store, to allow for zero-allocation execution