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.

ยงArguments

  • sigma - gaussian bell flattening level.

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. This method typically assumes that the input is scene-linear light. If it is not, color distortion may occur.