54 return "Conditional subsampling. This filter reduces the size of the point cloud by randomly dropping points if their number is above maxCount. Based on \\cite{Masuda1996Random}";
59 {
"seed",
"srand seed",
"1",
"0",
"2147483647", &P::Comp<size_t>},
60 {
"maxCount",
"maximum number of points",
"1000",
"0",
"2147483647", &P::Comp<size_t>}
70 virtual DataPoints
filter(
const DataPoints& input);
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Parametrizable::ParameterDoc ParameterDoc
MaxPointCountDataPointsFilter(const Parameters ¶ms=Parameters())
Maximum number of points.
Parametrizable::ParametersDoc ParametersDoc
Parametrizable::Parameters Parameters
Parametrizable::InvalidParameter InvalidParameter
static const ParametersDoc availableParameters()
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...
PointMatcherSupport::Parametrizable P
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. ...
PointMatcher< T >::DataPoints DataPoints
std::vector< ParameterDoc > ParametersDoc
The documentation of all parameters.
PointMatcherSupport::Parametrizable Parametrizable
PM::DataPointsFilter DataPointsFilter
virtual ~MaxPointCountDataPointsFilter()
static const std::string description()