了解 pcl 库的体素网格实现

Understanding the voxel grid implementation of pcl library

我有一个点云数据(x,y,z),我想对这个点云进行体素化并得到所有的体素。 PCL voxelgrid 实现体素化点云和 return 每个体素的质心。体素网格的确切实现在 url 'http://docs.pointclouds.org/1.8.1/voxel__grid_8hpp_source.html#l00214' 中。对点云进行体素化的任何其他参考资料也很可取。

您可以使用 OctreePointCloudPointVector 确切的用例。

每片叶子都是OctreeContainerPointIndices, where you can get all points inside that leaf with getPointIndicesVector

看看 test_octree.cpp 如何在 PCL 中使用 Octree 类。