Function skeletonize::edge_detection::sobel[][src]

pub fn sobel<F: ForegroundColor>(
    img: &DynamicImage,
    threshold: Option<f32>
) -> Result<DynamicImage, SkeletonizeError>

Detect edges in an image using SOBEL_EAST and SOBEL_NORTH gradient operators.

threshold is an optional parameter between 0.0 and 1.0 which is used to binarize the image. Pixels below that Luma threshold will be converted to the background color.