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

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

提交回复
热议问题