Skip to main content

gaussian_blur_u8

Function gaussian_blur_u8 

Source
pub fn gaussian_blur_u8<const CHANNELS: usize>(
    input: ImageView<'_, u8, CHANNELS>,
    kernel_width: usize,
    kernel_height: usize,
    sigma_x: f64,
    sigma_y: f64,
    border: BorderMode<u8, CHANNELS>,
) -> VisionResult<Image<u8, CHANNELS>>
Expand description

Applies a specialized 3×3, 5×5, or 7×7 Gaussian blur to interleaved u8 input.

The 3×3 and 5×5 paths use normalized Q8 kernels and a u16 horizontal intermediate. Calls with a 7×7 axis use Q15 kernels, a u32 horizontal intermediate, and a rounded u64 final accumulation. OpenCV comparison is gated to a maximum difference of two u8 levels.