60 return "Normal Space Sampling (NSS) \\cite{Rusinkiewicz2001}. Construct a set of buckets in the normal-space, then put all points of the data into buckets based on their normal direction; Finally, uniformly pick points from all the buckets until the desired number of points is selected. **Required** to compute normals as pre-step.";
66 {
"nbSample",
"Number of point to select.",
"5000",
"1",
"4294967295", &P::Comp<std::size_t>},
67 {
"seed",
"Seed for the random generator.",
"1",
"0",
"4294967295", &P::Comp<std::size_t>},
68 {
"epsilon",
"Step of discretization for the angle spaces",
"0.09817477042" ,
"0.04908738521" ,
"3.14159265359" , &P::Comp<T>}
84 virtual DataPoints
filter(
const DataPoints& input);
NormalSpaceDataPointsFilter(const Parameters ¶ms=Parameters())
static const ParametersDoc availableParameters()
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Matrix::Index Index
An index to a row or a column.
PointMatcher< T >::DataPoints::InvalidField InvalidField
Parametrizable::ParameterDoc ParameterDoc
const std::size_t nbSample
std::size_t bucketIdx(T theta, T phi) const
PM::DataPoints DataPoints
std::map< std::string, Parameter > Parameters
Parameters stored as a map of string->string.
Parametrizable::Parameters Parameters
Functions and classes that are dependant on scalar type are defined in this templatized class...
virtual ~NormalSpaceDataPointsFilter()
A data filter takes a point cloud as input, transforms it, and produces another point cloud as output...
PointMatcherSupport::Parametrizable P
The documentation of a parameter.
static const std::string description()
PM::DataPointsFilter DataPointsFilter
const std::size_t nbBucket
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.
Parametrizable::ParametersDoc ParametersDoc
An exception thrown when one tries to access features or descriptors unexisting or of wrong dimension...
Parametrizable::InvalidParameter InvalidParameter
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
PointMatcherSupport::Parametrizable Parametrizable