Sobel Edge Detection Filter

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

The Sobel filter can be used for edge detection. There are two mask matrices that convolve with the image data (matrix). The images are grayscale.


It is one of the image segmentation techniques used in Computer Vision (CV) software in its initial preprocessing steps called early vision. After the early vision preprocessing a CV system can, for example, use artificial intelligence to identify, classify, or count objects in an image.


Contributed by: Daniel de Souza Carvalho (March 2011)
Open content licensed under CC BY-NC-SA



Sobel gradient edge operator:

Vertical matrix:

Horizontal matrix:

Reference: D. A. Forsyth and J. Ponce, Computer Vision: A Modern Approach, Upper Saddle River, NJ: Prentice Hall, 2003.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.