Function lvr2::subSamplePointBuffer(PointBufferPtr, const size_t&)
Defined in File IOUtils.hpp
Function Documentation
-
PointBufferPtr lvr2::subSamplePointBuffer(PointBufferPtr src, const size_t &n)
Computes a random sub-sampling of a point buffer by creating a uniform distribution over all point indices with given target size. The sub-sampling is applied to all channels in the source buffer.
- Parameters:
src – Source buffer
n – Number of target points
- Returns:
PointBufferPtr Reduced point buffer