threshold

Function threshold 

Source
pub fn threshold(image: &GrayImage, threshold_val: u8) -> GrayImage
Expand description

Apply binary thresholding

§Arguments

  • image - Input grayscale image
  • threshold - Threshold value (0-255)

§Returns

Binary image (0 or 255)