54 return "Subsampling. This filter reduces the size of the point cloud by only keeping one point over step ones; with step varying in time from startStep to endStep, each iteration getting multiplied by stepMult. If use as prefilter (i.e. before the iterations), only startStep is used.";
59 {
"startStep",
"initial number of point to skip (initial decimation factor)",
"10",
"1",
"2147483647", &P::Comp<unsigned>},
60 {
"endStep",
"maximal or minimal number of points to skip (final decimation factor)",
"10",
"1",
"2147483647", &P::Comp<unsigned>},
61 {
"stepMult",
"multiplication factor to compute the new decimation factor for each iteration",
"1",
"0.0000001",
"inf", &P::Comp<double>}
77 virtual DataPoints
filter(
const DataPoints& input);
Parametrizable::Parameters Parameters
PointMatcher< T >::DataPoints DataPoints
PointMatcherSupport::Parametrizable P
PointMatcherSupport::Parametrizable Parametrizable
FixStepSamplingDataPointsFilter(const Parameters ¶ms=Parameters())
std::map< std::string, Parameter > Parameters
Parameters stored as a map of string->string.
Functions and classes that are dependant on scalar type are defined in this templatized class...
Parametrizable::ParametersDoc ParametersDoc
Parametrizable::InvalidParameter InvalidParameter
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...
virtual void init()
Init this filter.
static const std::string description()
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.
virtual ~FixStepSamplingDataPointsFilter()
static const ParametersDoc availableParameters()
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
PM::DataPointsFilter DataPointsFilter
Parametrizable::ParameterDoc ParameterDoc
Systematic sampling, with variation over time.