Algorithm • First convolve the image with the Gaussian filter. Compute the gradient of the resultant smooth image. Store the edge magnitude and edge orientation separately in two arrays, M(x, y) and a(,)xy, respectively.
• The next step is to thin the edges. This is done using
hysteresis thresholding is that only a large amount of change in the gradient magnitude matters in edge detection and small changes do not affect the quality of edge detection.