Sobel Edge Detection¶ Steps: Take a grayscale image To get an output image of the same size , we pad the image with zeros Convolve the image with the x and y kernels for Sobel, Sobel-Feldman, Scharr, Lapacian Take the gradients for edge detection Final output image source : https://en.wikipedia.org/wiki/Sobel_operator Results are as follows: