Go to the documentation of this file.
45 PointMatcher<T>::DataPointsFilter(
"MaxQuantileOnAxisDataPointsFilter",
59 inPlaceFilter(output);
67 if (
int(dim) >= cloud.
features.rows())
68 throw InvalidParameter((boost::format(
"MaxQuantileOnAxisDataPointsFilter: Error, filtering on dimension number %1%, larger than feature dimensionality %2%") % dim % cloud.
features.rows()).str());
70 const int nbPointsIn = cloud.
features.cols();
71 const int nbPointsOut = nbPointsIn * ratio;
75 values.reserve(nbPointsIn);
76 for (
int x = 0;
x < nbPointsIn; ++
x)
81 const T limit =
values[nbPointsOut];
85 for (
int i = 0; i < nbPointsIn; ++i)
94 assert(j <= nbPointsOut);
Parametrizable::Parameters Parameters
Subsampling. Filter points beyond a maximum quantile measured on a specific axis.
Functions and classes that are dependant on scalar type are defined in this templatized class.
void setColFrom(Index thisCol, const DataPoints &that, Index thatCol)
Set column thisCol equal to column thatCol of that, copy features and descriptors if any....
An exception thrown when one tries to fetch the value of an unexisting parameter.
Matrix features
features of points in the cloud
std::vector< double > values
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...
const M::mapped_type & get(const M &m, const typename M::key_type &k)
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
void conservativeResize(Index pointCount)
Resize the cloud to pointCount points, conserving existing ones.
MaxQuantileOnAxisDataPointsFilter(const Parameters ¶ms=Parameters())
Constructor, uses parameter interface.
mp2p_icp
Author(s):
autogenerated on Thu Dec 26 2024 03:48:12