blud 0.0.0

An implementation of "Fastest Gaussian Blur" for N-channel image slices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use fimg::Image;
use umath::FF32;

fn bench_blur_image() {
    let mut image_bytes = include_bytes!("../assets/cballs.imgbuf").to_vec();
    blud::blur::<3, _>(&mut Image::build(800, 200).buf(&mut *image_bytes), unsafe {
        FF32::new(15.0)
    });
    assert_eq!(image_bytes, include_bytes!("../assets/blurred.imgbuf"));
    iai::black_box(image_bytes);
}

iai::main!(bench_blur_image);