pub fn fast_blur<P>(
input_buffer: &ImageBuffer<P, Vec<<P as Pixel>::Subpixel>>,
sigma: f32,
) -> ImageBuffer<P, Vec<<P as Pixel>::Subpixel>>where
P: Pixel,
Expand description
Approximation of Gaussian blur.
ยงArguments
image_buffer
- source image.sigma
- value controls image flattening level.
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.
Source: Kovesi, P.: Fast Almost-Gaussian Filtering The Australian Pattern Recognition Society Conference: DICTA 2010. December 2010. Sydney.