Skip to main content

threshold

Function threshold 

Source
pub fn threshold<T: PixelComponent, const CHANNELS: usize>(
    input: ImageView<'_, T, CHANNELS>,
    threshold: f64,
    max_value: f64,
    threshold_type: ThresholdType,
) -> VisionResult<Image<T, CHANNELS>>
Expand description

Applies a fixed threshold independently to every component.