Multiply - by each of the corresponding elements in the neighborhood, the maximum value of the 8 calculated results is used as the approximate gradient value of the center pixel, and the corresponding direction is used as the edge direction. The eight convolution kernels form the Kirsch operator. During edge extraction, the 3×3 neighborhood corresponding to each pixel in the image is convolved with these 8 templates, and then the maximum value is output [6].