pub fn voxel_point_sampling(
points: &[DVector<f64>],
voxel_size: f64,
) -> Vec<DVector<f64>> ⓘExpand description
Voxel point sampling.
Points that fall within the same voxel grid cell are merged by computing their mean. This produces a downsampled point cloud with at most one point per voxel.
§Arguments
points- Original N-dimensional points.voxel_size- Side length of each voxel cell.
§Returns
A vector of sampled points (one per occupied voxel).