血管三维重建笔记Python

中轴线插值:(3维空间中点的插值)

1.插值  直线插值; griddata函数  效果不太好

2.拟合曲线  利用xy求z

3.平滑

使用的splprep和splev函数

参考链接:

https://www.reddit.com/r/learnpython/comments/ea44tf/interpolating_points_in_3d_with_numpy_scipy/

https://stackoverflow.com/questions/18962175/spline-interpolation-coefficients-of-a-line-curve-in-3d-space

https://stackoverflow.com/questions/46721462/getting-a-good-interpolation-fit-for-1d-curve-in-3d-space-python

挖孔:

沿中轴线生成圆柱,挖孔。 需要控制每一圈孔的个数,通过圆柱体的角度(方向)

通过旋转圆柱体的轴来实现:参考3d坐标系中向量的旋转

(48条消息) 三维空间中向量的旋转_nnzzll的博客-CSDN博客_三维向量旋转

学习链接:

安装:(1条消息) python+VTK 安装教程_sinat_23619409的博客-CSDN博客_python 安装vtk

解决安装中出现的问题:(1条消息) 【2021新教程】解决is not a supported wheel on this platform-解决pip has no attribute pep425tags-解决网上旧教程不适用的问题_Luke技术小站-CSDN博客

使用:Python vtk学习(1) - 范中豪 - 博客园 (cnblogs.com)

读取数据:.stl 3D模型文件的读取计算,方法和程序实现(matlab版&&C++版&&python版)_jfsufeng的专栏-CSDN博客

sukhbinder/BinarySTLfileReader: Binary STL File reader in Python (github.com)

JeffJFZ/stlGeneralAccess: stlGeneralAccess for both binary STL and ASCII STL. (github.com)

点一样,法向量不同fsantini/python-stlsplitter: STL file splitter and binary/ascii read/write library for Python (github.com)

安装open3d

Getting started — Open3D 0.13.0 documentation

open3D对csv点云可视化

【LiDar16】Open3D将CSV/PCD点云数据可视化并保存_ThetaQing的博客-CSDN博客_open3d 保存点云

安装vpython (使用whl安装)

1.pip debug --verbose查看符合要求的Whl文件

2.在官网 下载符合要求的Whl文件 

vpython · PyPI

3.进入到whl文件所在目录,在当前目录中进入cmd(在文件目录行中输入cmd-回车)

4.pip install xxx.whl

在安装时出错:

1.只兼容amd32  不知道咋解,换了个python环境,conda中支持amd64

2.错误:multiple  top-level packages discovered in a flat-layout

可能是setuptools版本问题 ,查看版本 easy_install --version

pip install --upgrade setuptools==60.10.0  即可解决

参考:Problem installing the sdk with the latest setuptools version: 61.0.0 · Issue #303 · vmware/vsphere-automation-sdk-python · GitHub

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值