Which is the best algorithm to “Estimate and Visualize 2d skeleton using Opencv” from the drawn contour

后端 未结 2 623
萌比男神i
萌比男神i 2021-01-05 21:59

Which is the best algorithm to \"Estimate and Visulize 2d skeleton using Opencv\" from the drawn contour?

Is the Recursive Centroid algorithm the Best? Any reference

相关标签:
2条回答
  • 2021-01-05 22:06

    Well, two approaches come to mind at this moment:

    Use the local ridge-values of the distance transform of the image - they should give a fast and visually intuitive (but rather imprecise) estimate of what the 2D-skeleton would look like.

    Another is a center-line extraction, that initially finds Canny edges, draws a ray along the gradient direction from each edge pixel until it reaches an opposite edge, and marks the mid-point of that line segment. This gives a rough initial feasible solution of the problem. Following this, there are other methods like dense tensor voting etc. to get the 2D skeleton.

    0 讨论(0)
  • 2021-01-05 22:25

    Without doing all of your homework, here are some hints:

    1. You have only a contour - a boundary that seperates the inside and the outside. To determine a skeleton you need a contiguous filled in object. A flood-fill algorithm will work.

    2. The skeleton of an object is the object that remains after iterative erosion.

    0 讨论(0)
提交回复
热议问题