You can use another type of custom filter to extract the edges of an image. Because an image contains both horizontal and vertical edges, the two types of edge detection filters d,etect the corresponding types of edges. The horizontal edge detection filter detects and extracts horizontal edges by subtracting a row of pixels above tne center pixel from the…