Skip to main content

bilateral_filter

Function bilateral_filter 

Source
pub fn bilateral_filter<T: PixelComponent, const CHANNELS: usize>(
    input: ImageView<'_, T, CHANNELS>,
    diameter: usize,
    sigma_color: f64,
    sigma_space: f64,
    border: BorderMode<T, CHANNELS>,
) -> VisionResult<Image<T, CHANNELS>>
Expand description

Applies an edge-preserving bilateral filter.

Color distance is the squared sum of per-channel absolute differences, matching OpenCV’s CPU implementation. The operation is out-of-place and never performs a device transfer.