Skip to main content

erode

Function erode 

pub fn erode<T, const CHANNELS: usize>(
    input: ImageView<'_, T, CHANNELS>,
    element: &StructuringElement,
    iterations: usize,
    border: BorderMode<T, CHANNELS>,
) -> Result<Image<T, CHANNELS>, VisionError>
where T: PixelComponent,
Expand description

Erodes each channel independently.