Thanks to visit codestin.com
Credit goes to docs.rs

sobel

Function sobel 

Source
pub fn sobel<T>(
    input: &Array<T>,
    ker_size: u32,
) -> (Array<T::SobelOutType>, Array<T::SobelOutType>)
Expand description

Sobel Operator

Sobel operators perform a 2-D spatial gradient measurement on an image to emphasize the regions of high spatial frequency, namely edges. A more in depth discussion on it can be found here.

§Parameters

  • input is the input image
  • ker_size is the kernel size of sobel operator

§Return Values

A tuple of Arrays.

The first Array has derivatives along horizontal direction

The second Array has derivatives along vertical direction