两个点云相加合并(附open3d python代码)

把多个点云合并的需求经常出现,直接可把它们合并起来。

两个点云相加合并(附open3d python代码)_第1张图片


# coding:utf-8
import open3d as o3d
import numpy as np

# --------------------------- 加载点云 ---------------------------
print("->正在加载点云... ")
pcd1 = o3d.io.read_point_cloud("lidar1.pcd")
pcd2 = o3d.io.read_point_cloud("lidar2.pcd")

print("原始点云pcd1:", pcd1)
print("原始点云pcd2:", pcd2)

pcd_all = pcd2 + pcd1
print("原始点云pcd_all:", pcd_all)
# ==============================================================
o3d.visualization.draw_geometries([ pcd_all], window_name="wechat 394467238 ")

 

你可能感兴趣的:(点云-激光雷达处理代码合集,python为主,python,numpy,开发语言,算法)