small_gicp
Namespaces | Functions
downsampling.hpp File Reference
#include <memory>
#include <random>
#include <iostream>
#include <unordered_map>
#include <small_gicp/points/traits.hpp>
#include <small_gicp/util/fast_floor.hpp>
#include <small_gicp/util/vector3i_hash.hpp>
Include dependency graph for downsampling.hpp:

Go to the source code of this file.

Namespaces

 small_gicp
 

Functions

template<typename InputPointCloud , typename OutputPointCloud = InputPointCloud>
std::shared_ptr< OutputPointCloud > small_gicp::voxelgrid_sampling (const InputPointCloud &points, double leaf_size)
 Voxelgrid downsampling. This function computes exact average of points in each voxel, and each voxel can contain arbitrary number of points. More...
 
template<typename InputPointCloud , typename OutputPointCloud = InputPointCloud, typename RNG = std::mt19937>
std::shared_ptr< OutputPointCloud > small_gicp::random_sampling (const InputPointCloud &points, size_t num_samples, RNG &rng)
 Random downsampling. More...