Function lvr2::getReductionFactor(ModelPtr, size_t)

Function Documentation

size_t lvr2::getReductionFactor(ModelPtr model, size_t targetSize)

Computes the reduction factor for a given target size (number of points) when reducing a point cloud using a modulo filter.

Parameters:
  • model – A model containing point cloud data

  • targetSize – The desired number of points in the reduced model

Returns:

The parameter n for the modulo filter (which means that you only have to write only every nth point to have approximately targetSize points in the reduced point cloud.