The purpose of the algorithm is to check if the pixels on the same direction are more or less intense than the ones being processed.
The principle is simple: the algorithm goes through all the points on the gradient intensity matrix and finds the pixels with the maximum value in the edge directions.
, represents an intensity pixel
f one those two pixels are more intense than the one being processed, then only the more intense one is kept.
If there are no pixels in the edge direction having more intense values, then the value of the current pixel is kept.
ore intense, because it is whit