threshold

Function threshold 

Source
pub fn threshold(
    img: &mut DynamicImage,
    threshold: f32,
) -> Result<(), SkeletonizeError>
Expand description

Create a binary image where values below threshold become black and above become white. threshold ranges from 0.0 to 1.0.