Kd/Oc-tree query on VoxelSpace
Not an issue as much as a request - if an Octree acceleration structure could be written along with the VoxelSpace object (or a flag for computing one during readVoxelSpace) it would massively speed up parts of my code for interacting with QSMs and LiDAR scans. Just a thought - maybe not trivial for the R package where another Octree library might be needed. And I have not seen any Octree providing packages from a short Google search. There do seem to be options for KdTrees, which might be needed for AMAPVox since voxel sizes are not strictly cubical. Possibly with Rcpp one could bring in a C++-based library but then it's getting quite non-trivial