实际执行中轴变换?
我已经看到了很多关于该算法所基于的解释,但我似乎找不到中轴变换本身的任何实际代码(伪代码或某种语言)。
对于某些情况(例如具有离散角的多边形),可以将其简化为 delaunay 三角形,但我更关心您有一个斑点(例如正在跟踪的人)并想要计算其骨架的情况。
这个的伪代码是什么样的?
I have seen plenty of explanations of what the algorithm is based on, but I can not seem to find any actual code (pseudocode or in some language) of the medial axis transform itself.
For certain instances (such as polygons with discrete corners), it can be simplified into a delaunay triangle, but I am more concerned with the case that you have a blob (such as a human being tracked) and want to compute its skeleton.
What would the pseudocode for this look like?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里
你有来自pymorph 库
:基本上是:
当然它使用了另一个函数来自同一个包。
的示例
Mathematica
HTH!
Here
you have the code from thepymorph library
:It's basically:
Of course it uses another functions from the same package.
An example from
Mathematica
HTH!