I have some points in a black and white image. I have the coordinates, x,y, of the centroids and I want to order them clockwise. To do these I want to use the angles. However I have a big confusion: I'm assuming that the axis of coordinates of atan2 are in the center of my photo. Then, I'm using one of the points as an offset to make the zero angle there.
Am I completely confused about this? Is this so difficult to achieve? I just want to get the angles of all the points, the angle zero being a point I choose, and then use the angles to order the centroids in a clockwise direction (incresing angle direction).
I hope I can solve this problem with your help! Many thanks, Hector