将PLY文件导出为NVM

问题描述

我正在使用以下代码查看由点云组成的层。

import numpy as np
import open3d as o3d
import webcolors
import seaborn as sns


input_file = "data/pointcloud.ply"
pcd = o3d.io.read_point_cloud(input_file) # Read the point cloud
downpcd = pcd.voxel_down_sample(voxel_size=0.05)
r,g,b = webcolors.hex_to_rgb(sns.xkcd_rgb['indigo'])
downpcd.paint_uniform_color([r / 255,g / 255,b / 255])
# Visualize the point cloud within open3d
o3d.visualization.draw_geometries([pcd])


point_cloud_in_numpy = np.asarray(pcd.points)

print(point_cloud_in_numpy.shape)

但是有什么方法可以将ply文件导出到nvm文件?

我尝试使用Blender,但是会引发以下错误,

NVMFileHandler.write_nvm_file(自身,相机,点数)calib_mat = cameras [0] .get_Calibration_mat()IndexError:列表索引超出范围

如何将层文件导出到nvm?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...