I am trying to write a c++ code for finding the endpoints and branch points of a skeleton. dose anybody have any idea how to do that using opencv?
I am new in working with opencv. I have a binary skeleton result and the result of skeleton has some annoying branches and I want to clean up my skeleton and only preserve the main branches. then I want to trace the line which normally has a bifurcation by DFS. I would appreciate if anybody could help me .