blud

Crates.ioblud
lib.rsblud
version0.0.0
sourcesrc
created_at2023-11-06 04:47:10.438215
updated_at2023-11-06 04:47:10.438215
descriptionAn implementation of "Fastest Gaussian Blur" for N-channel image slices
homepage
repositoryhttps://github.com/bend-n/blud
max_upload_size
id1026401
size974,056
bendn (bend-n)

documentation

README

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)
Commit count: 1

cargo fmt