I need to partition my data into voxels using octree data structure of PCL. I think I managed to create the octree and voxels. However, I have two questions about octree structure of PCL.
- My first question is about resolution of the octree. I defined the resolution as shown below:
float resolution = 0.009f; pcl::octree::OctreePointCloudSearch<pcl::PointXYZ> octree(resolution);
As far as I understood, this resolution parameter defines the dimension of side length of the voxel at lowest level of the octree. In this case the side length of voxels at lowest level are equal to 0.009m, is it correct?
- How can I get point indices for each voxel? Let's say there are five points in the first voxel and I need indices of these points. I am looking forward to hearing from you Regards