Class NearestCenterOctreeReduction

Inheritance Relationships

Base Type

Class Documentation

class NearestCenterOctreeReduction : public lvr2::OctreeReductionBase

Public Functions

NearestCenterOctreeReduction(PointBufferPtr pointBuffer, float voxelSize, size_t minPointsPerVoxel)

Constructs octtree that holds up to minPointsPerVoxel points per voxel. It selects one point per voxel which is closest to the voxel center.

Parameters:
  • pointBuffer – The point buffer with the initial point cloud

  • voxelSize – Minimum size of a Leaf Node. Anything smaller will be condensed with the point that is closest to the voxel center

  • minPointsPerVoxel – Minimum number of points per voxel: If the number of points in the voxel is smaller than this value, the Octree recursion stops AND all respective points are added to the reduced points without choosing a nearest center point.

virtual PointBufferPtr getReducedPoints() override

Get the Reduced Points object.

Returns:

PointBufferPtr The reduced points