Skip to main content

linear_gaussian_kernel

Function linear_gaussian_kernel 

Source
pub fn linear_gaussian_kernel(sigma: f32, taps: usize) -> (Vec<f32>, Vec<f32>)
Expand description

Separable Gaussian weights optimised for bilinear texture fetches. Returns (offsets, weights) for a half-kernel (center + positive taps). Linear sampling combines two adjacent texels, halving the tap count.