#time

blud

An implementation of "Fastest Gaussian Blur" for N-channel image slices

1 unstable release

0.0.0 Nov 6, 2023

#852 in #time

MIT license

1MB
278 lines

blud

A fast linear-time gaussian blur based on http://blog.ivank.net/fastest-gaussian-blur.html.

This implementation was based on https://github.com/lsr0/fastblur.

The function in this crate blurs a image, with any number of channels, and the given blur radius. Performance is roughly linear time, space is O(n).

Example

Blur an Image

fn blur_fast(image: &mut fimg::Image<&mut [u8], 4>, radius: f32) {
    blud::blur(image, unsafe { umath::FF32::new(radius) })
}

Changes:

  • Optimization (fmath)
  • Optimization (bounds)

Dependencies