56 typedef typename Eigen::Matrix<T,2,1>
Vector2;
57 typedef typename Eigen::Matrix<T,3,1>
Vector3;
63 return "Construct Voxel grid of the point cloud. Down-sample by taking centroid or center of grid cells.";
69 {
"vSizeX",
"Dimension of each voxel cell in x direction",
"1.0",
"0.001",
"+inf", &P::Comp<T>},
70 {
"vSizeY",
"Dimension of each voxel cell in y direction",
"1.0",
"0.001",
"+inf", &P::Comp<T>},
71 {
"vSizeZ",
"Dimension of each voxel cell in z direction",
"1.0",
"0.001",
"+inf", &P::Comp<T>},
72 {
"useCentroid",
"If 1 (true), down-sample by using centroid of voxel cell. If false (0), use center of voxel cell.",
"1",
"0",
"1", P::Comp<bool>},
73 {
"averageExistingDescriptors",
"whether the filter keep the existing point descriptors and average them or should it drop them",
"1",
"0",
"1", P::Comp<bool>}
86 Voxel() : numPoints(0), firstPoint(0) {}
96 virtual DataPoints
filter(
const DataPoints& input);
Parametrizable::ParameterDoc ParameterDoc
static const std::string description()
PM::DataPoints DataPoints
Parametrizable::InvalidParameter InvalidParameter
Eigen::Matrix< T, 2, 1 > Vector2
const bool averageExistingDescriptors
Eigen::Matrix< T, 3, 1 > Vector3
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > Matrix
A dense matrix over ScalarType.
PointMatcher< T >::DataPoints::InvalidField InvalidField
std::map< std::string, Parameter > Parameters
Parameters stored as a map of string->string.
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Functions and classes that are dependant on scalar type are defined in this templatized class...
Parametrizable::Parameters Parameters
PointMatcherSupport::Parametrizable P
static const ParametersDoc availableParameters()
VoxelGridDataPointsFilter()
A data filter takes a point cloud as input, transforms it, and produces another point cloud as output...
The documentation of a parameter.
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
The superclass of classes that are constructed using generic parameters. This class provides the para...
An exception thrown when one tries to fetch the value of an unexisting parameter. ...
std::vector< ParameterDoc > ParametersDoc
The documentation of all parameters.
PM::DataPointsFilter DataPointsFilter
PointMatcher< T >::Vector Vector
An exception thrown when one tries to access features or descriptors unexisting or of wrong dimension...
Parametrizable::ParametersDoc ParametersDoc
PointMatcher< T >::Matrix Matrix
virtual ~VoxelGridDataPointsFilter()
Eigen::Matrix< T, Eigen::Dynamic, 1 > Vector
A vector over ScalarType.
PointMatcherSupport::Parametrizable Parametrizable