Search for coordinates of points on the border of the form

Let's say I have this form:

enter image description here

After all my jokes that want to draw beans have been exhausted, I want to find points on the border of the form. I know that there can be many of them, so a fair distance between them is accepted.

Is there an algorithm for such a need? Or software? All the solutions that I came up with are associated with a lot of manual work, especially if I want to make a slightly different form.

Overcoming wisdom, please help.

+5
source share
2 answers

, , , , , , gradient method :

enter image description here

, , . , . :

enter image description here

:

{{35, 107}, {35, 108}, {35, 109}, {35, 110}, {35, 111},
 {35, 112}, {35, 113}, {35, 114}, {35, 115}, {35, 116},
 {35, 117}, {35, 118}, {35, 119}, {35, 120}, {35, 121},
 {36, 103}, {36, 104}, {36, 105}, {36, 106}, {36, 107}, etc....
+6

, "", " ". , , .

, , AutoTrace: http://autotrace.sourceforge.net/

+2

All Articles