skimage2.filters.scharr_h#

skimage2.filters.scharr_h(image, mask=None)[source]#

Find the horizontal edges of an image using the Scharr transform.

Parameters:
imagendarray of shape (M, N)

Image to process.

maskndarray of shape (M, N), optional

An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result.

Returns:
outputndarray of shape (M, N) and dtype float

The Scharr edge map.

Notes

We use the following kernel:

 3   10   3
 0    0   0
-3  -10  -3

References

[1]

D. Kroon, 2009, Short Paper University Twente, Numerical Optimization of Kernel Based Image Derivatives.