DetectChanges-PCL-Python (50%)

Jupyter ๋ฒ„์ ผ์€ [์ด๊ณณ]์—์„œ ํ™•์ธ ๊ฐ€๋Šฅ ํ•ฉ๋‹ˆ๋‹ค.

cloudA = pcl.PointCloud()
cloudA = pcl.load("RANSAC_plane_false.pcd") 

resolution = 0.01
octree = cloudA.make_octreeChangeDetector(resolution)
octree.add_points_from_input_cloud ()

octree.switchBuffers () #Switch buffers and reset current octree structure.

cloudB = pcl.PointCloud()
cloudB = pcl.load("tabletop_passthrough.pcd")

octree.set_input_cloud (cloudB)
octree.add_points_from_input_cloud ()

newPointIdxVector = octree.get_PointIndicesFromNewVoxels ()

print('Output from getPointIndicesFromNewVoxels:')
cloudB.extract(newPointIdxVector)

Last updated