Function blur

Source
pub fn blur<I>(
    image: &I,
    sigma: f32,
) -> ImageBuffer<<I as GenericImageView>::Pixel, Vec<<<I as GenericImageView>::Pixel as Pixel>::Subpixel>>
where I: GenericImageView, <I as GenericImageView>::Pixel: 'static,
Expand description

Performs a Gaussian blur on the supplied image. sigma is a measure of how much to blur by. Use crate::imageops::fast_blur() for a faster but less accurate version. This method assumes alpha pre-multiplication for images that contain non-constant alpha.