Open3D无效点云过滤删除

由于原始点云中有大量无效的点云数据。发现通过过滤的方式最方便

我的点云数据中Z无效的点云都为-32768 只要过滤掉大于-32768的数据就行

#加载点云数据
ply = o3d.io.read_point_cloud("source/Foam1.ply") 

# Get the values of the points
points = np.asarray(ply.points)

# Filter the points by z-axis value
filtered_points = points[points[:, 2] > -32700]

# Create a new point cloud with the filtered points
filtered_pcd = o3d.geometry.PointCloud()
filtered_pcd.points = o3d.utility.Vector3dVector(filtered_points)


#pcd = ply.remove_non_finite_points(remove_nan = True, remove_infinite = True) 
o3d.visualization.draw_geometries([ filtered_pcd],window_name="filtered_points") 

你可能感兴趣的:(机器视觉,#,Open3D,open3d,python,点云过滤删除)