thin_image_edges

Function thin_image_edges 

Source
pub fn thin_image_edges<F: ForegroundColor>(
    img: &mut DynamicImage,
    method: MarkingMethod,
    iterations: Option<u32>,
) -> Result<u32, SkeletonizeError>
Expand description

Perform image thinning on a binarized image img using one of the methods in MarkingMethod. Returns the number of iterations needed for thinning on successful completion.

iterations is an optional parameter set to u32::MAX if None.