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

后端 未结 2 645
萌比男神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.

提交回复
热议问题