Sobel filter is an edge detection algorithm used in image processing and computer vision. It performs 2D spatial gradient measurement on an image. The high frequency corresponds to the edges of image. There are two parts of filter, horizontal and vertical Sobel filter.