Skip to content

Add nearest point to voxel centroid/center as reduction option for PointCloud::VoxelDownSample #6807

Open
@nvandamme

Description

@nvandamme

Checklist

Proposed new feature or change

Hi,

We're using extensively Voxel downsampling with nearest point to the voxel centroid and/or center, like exposed by PDAL:

This way remaining points are original points from the source and we can use this method as a non-deforming spatial subsampling (only the nearest point of the voxel center/centroid within the voxel radius is retained)

CloudCompare is also exposing this method as "Spatial subsampling".

References

https://github.com/PDAL/PDAL/blob/master/filters/VoxelCentroidNearestNeighborFilter.cpp
https://github.com/PDAL/PDAL/blob/master/filters/VoxelCenterNearestNeighborFilter.cpp
https://github.com/CloudCompare/CCCoreLib/blob/master/src/CloudSamplingTools.cpp#L241

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions