Apply horizontal and vertical Sobel filters to a grayscale image with one-pixel zero padding and return edge gradients.