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

pub fn threshold<I>(image: &I, thresh: u8) -> GrayImage where I: GenericImage<Pixel=Luma<u8>>

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