I have a black and white picture of curves and I want to extract minimum dots representing each curve. dots are connected by straight lines. this is an example of what I want:
It is useful If I could know the precedence of dots especially in tied sections. I'm using c++ and opencv. What algorithms I should use for this problem?