将圆柱体拟合到分散的3D XYZ点数据 [英] Fit a cylinder to scattered 3D XYZ point data

查看:108
本文介绍了将圆柱体拟合到分散的3D XYZ点数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题中所示,我想使用Python将圆柱体拟合到一组3D点.这是一个很好的解决方案, MATLAB .我们如何使用Python做到这一点?

As in the title, I want to fit a cylinder to a group of 3D points with Python. This is a nice solution with MATLAB. How can we do it with Python?

推荐答案

David Eberly网站上有论文,介绍了数学基础知识并显示了伪代码.

There is paper at David Eberly site "Fitting 3D Data with a Cylinder" that describes math basics and shows pseudocode.

您还可以在同一站点上使用Geometric Tools Engine中的C ++代码.我认为可以在NymPy中实现一些辅助数学函数,例如矩阵求逆等.

You can also refer to C++ code in Geometric Tools Engine at the same site. I think that some auxiliary math functions like matrix inverse etc could be implemented in NymPy.

这篇关于将圆柱体拟合到分散的3D XYZ点数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆