Function skeletonize::edge_detection::sobel4[][src]

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

Detect edges in an image using four Sobel gradient operators: SOBEL_NORTH, SOBEL_SOUTH, SOBEL_EAST, and SOBEL_WEST.

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.