I have a picture (B&W) of a curve which is plotted on a gridded paper.
What I would like to do is to find the points which are corners of the grid. I apply Harris corner detection algorithm to detect the corner points which actually works fine (red dots in the picture). However, there are of course other points that return as outputs of the Harris algorithm. How can I get only the corner points of the grid?
Any idea will be appreciated.