Function lvr2::getReductionFactor(boost::filesystem::path&, size_t)
Defined in File IOUtils.hpp
Function Documentation
-
size_t lvr2::getReductionFactor(boost::filesystem::path &inFile, size_t targetSize)
Computes the reduction factor for a given target size (number of points) when reducing a point cloud loaded from an ASCII file using a modulo filter.
- Parameters:
inFile – An ASCII file 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.