Template Function ouster::sdk::core::voxel_downsample(typename DerivedPts::Scalar, const DerivedPts&, const DerivedAttrib&, DerivedOutPts&, DerivedOutAttrib&, int)
Defined in File downsample.h
Function Documentation
-
template<typename DerivedPts, typename DerivedAttrib, typename DerivedOutPts, typename DerivedOutAttrib>
void ouster::sdk::core::voxel_downsample(typename DerivedPts::Scalar voxel_size, const DerivedPts &pts, const DerivedAttrib &attribs, DerivedOutPts &out_pts, DerivedOutAttrib &out_attribs, int min_pts_per_voxel = 1) [BETA] Downsample a pointcloud using a voxel grid of the requested resolution.
Remark
this is a beta feature and may change in future releases.
- Template Parameters:
DerivedPts – type of input Eigen points matrix
DerivedAttrib – type of input Eigen attributes matrix
DerivedOutPts – type of output Eigen points matrix
DerivedOutAttrib – type of output Eigen attributes matrix
- Parameters:
voxel_size – [in] downsample voxel size
pts – [in] Nx3 array of points to downsample
attribs – [in] NxM array of attributes for each point to downsample
out_pts – [out] Px3 downsampled points array
out_attribs – [in] PxM downsampled attributes array
min_pts_per_voxel – [in] minimum number of points a voxel must contain to count