Function threshold
pub fn threshold<T, const CHANNELS: usize>(
input: ImageView<'_, T, CHANNELS>,
threshold: f64,
max_value: f64,
threshold_type: ThresholdType,
) -> Result<Image<T, CHANNELS>, VisionError>where
T: PixelComponent,Expand description
Applies a fixed threshold independently to every component.