pub fn blur<T, B: StackBlurrable>(
buffer: &mut ImgRefMut<'_, T>,
radius: usize,
to_blurrable: impl FnMut(&T) -> B,
to_pixel: impl FnMut(B) -> T,
)
Expand description
Blurs a buffer, assuming one element per pixel.
The provided closures are used to convert from the buffer’s native pixel
format to StackBlurrable
values that can be consumed by StackBlur
.