pub fn threshold(image: &GrayImage, threshold_val: u8) -> GrayImage
Apply binary thresholding
image
threshold
Binary image (0 or 255)