1

So let's say I have the points of this shape's outline: enter image description here

Now, these points aren't sorted. What I want to do is turning [B, E, H, M, P, ...] into [A, B, C, D, E, ...].

I tried to find the top-left point (A) and then go from it on and on. I faled in cases like this one: enter image description here

I don't want to use libraries like OpenCV, but write the algorithm myself. Any help?

Hackaholic
  • 19,069
  • 5
  • 54
  • 72

0 Answers0