Skip to main content

gaussian_kernel

Function gaussian_kernel 

Source
pub fn gaussian_kernel(blur_radius: f32) -> Vec<f32>
Expand description

Compute a normalised 1-D Gaussian kernel with sigma = blur_radius / 2.

The kernel is stored as a half-width (non-negative taps only) because the full kernel is symmetric.