We\'ve learned that you can get the gradient direction with atan(dy/dx) which is the direction orthogonal to the edge. Now we had a homework where we were suppo
atan(dy/dx)
Here's a python implementation of Non Maxima Suppression used in Canny Edge Detection process.
They concentrate on North and South, North-East and South-West, East and West, and South-East and North-West. Then decide which values to keep.
Hope it helps someone who needs NMS for finding better edge.