pub fn par_blur<T: Send + Sync, B: StackBlurrable + Send + Sync>(
buffer: &mut ImgRefMut<'_, T>,
radius: usize,
to_blurrable: impl Fn(&T) -> B + Sync,
to_pixel: impl Fn(B) -> T + Sync,
)
Expand description
Blurs a buffer in parallel, 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
.