Function imageproc::contrast::threshold [] [src]

pub fn threshold(image: &GrayImage, thresh: u8) -> GrayImage

Returns a binarized image from an input 8bpp grayscale image obtained by applying the given threshold.