Skip to main content

adaptive_threshold

Function adaptive_threshold 

Source
pub fn adaptive_threshold(
    input: ImageView<'_, u8, 1>,
    max_value: u8,
    method: AdaptiveThresholdMethod,
    threshold_type: ThresholdType,
    block_size: usize,
    c: f64,
    border: BorderMode<u8, 1>,
) -> VisionResult<Image<u8, 1>>
Expand description

Applies adaptive binary thresholding to an 8-bit grayscale image.