Function bilateral_filter
pub fn bilateral_filter<T, const CHANNELS: usize>(
input: ImageView<'_, T, CHANNELS>,
diameter: usize,
sigma_color: f64,
sigma_space: f64,
border: BorderMode<T, CHANNELS>,
) -> Result<Image<T, CHANNELS>, VisionError>where
T: PixelComponent,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.