Recently, I'm using contour following method. And I've download a very good and useful code. Thanks a lot to the programmer.
But there are some different in my case, my image appears some breaks. This code will stop finding contour.
So I have to connect the contour first.
At first, I use my own way to choose where to add new points. It of course showed me error.
Good programmers only consider how to make sure their codes work excellently first.
Not for you easy to understand, and easy to edit. (They don't know where will you edit, and they can't take so good care)
No matter how, I makes it workable for me.
And learent a new lesson. Understand other's code first!!