点云文件的格式转换:ply转pcd,pcd转pth,查看pth格式文件_ply格式点云转pcd格式点云 指令-CSDN博客
import open3d as o3d
def convert_ply_to_pcd(ply_file, pcd_file):
# 读取PLY文件
point_cloud = o3d.io.read_point_cloud(ply_file)
# 保存为PCD文件
o3d.io.write_point_cloud(pcd_file, point_cloud)
# 使用示例
ply_file_path = 'F:/Administrator/Desktop/solo/bun000.ply' # 填入ply文件的路径
pcd_file_path = 'F:/Administrator/Desktop/solo/bun000.pcd' # 填入pcd文件的路径
convert_ply_to_pcd(ply_file_path, pcd_file_path)
用c++代码一直出错,简单转个文件用了2个h,欸。还是python好用。