Function skeletonize::threshold[][src]

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

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