56 return "Subsampling. This filter reduces the size of the point cloud by randomly dropping points. Based on \\cite{Masuda1996Random}";
61 {
"prob",
"Probability to keep a point, one over decimation factor ",
"0.75",
"0",
"1", &P::Comp<T>},
62 {
"randomSamplingMethod",
"Random sampling method: Direct RNG (0) (fastest), Uniform (1) (more accurate but slower)",
"0",
"0",
"1", &P::Comp<int>},
63 {
"seed",
"Seed for random sampling (-1 means no seed is used)",
"-1",
"-1",
"2147483647", &P::Comp<int>}
73 virtual DataPoints
filter(
const DataPoints& input);
PointMatcherSupport::Parametrizable P
const int randomSamplingMethod
virtual ~RandomSamplingDataPointsFilter()
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
Eigen::VectorXf sampleRandomIndices(const size_t nbPoints)
std::map< std::string, Parameter > Parameters
Parameters stored as a map of string->string.
PointMatcher< T >::DataPoints DataPoints
Functions and classes that are dependant on scalar type are defined in this templatized class...
Parametrizable::ParameterDoc ParameterDoc
Parametrizable::ParametersDoc ParametersDoc
The documentation of a parameter.
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.
RandomSamplingDataPointsFilter(const Parameters ¶ms=Parameters())
PointMatcherSupport::Parametrizable Parametrizable
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
static const ParametersDoc availableParameters()
Parametrizable::InvalidParameter InvalidParameter
PM::DataPointsFilter DataPointsFilter
static const std::string description()
Parametrizable::Parameters Parameters