Go to the documentation of this file.
43 PointMatcher<T>::DataPointsFilter(
"MaxDistDataPointsFilter",
56 inPlaceFilter(output);
67 if (dim >= cloud.
features.rows() - 1)
70 (boost::format(
"MaxDistDataPointsFilter: Error, filtering on dimension number %1%, larger than authorized axis id %2%") % dim % (cloud.
features.rows() - 2)).str());
73 const int nbPointsIn = cloud.
features.cols();
74 const int nbRows = cloud.
features.rows();
79 const T absMaxDist =
anyabs(maxDist);
80 for (
int i = 0; i < nbPointsIn; ++i)
82 if (cloud.
features.col(i).head(nbRows-1).norm() < absMaxDist)
91 for (
int i = 0; i < nbPointsIn; ++i)
93 if ((cloud.
features(dim, i)) < maxDist)
Functions and classes that are dependant on scalar type are defined in this templatized class.
Subsampling. Filter points beyond a maximum distance measured on a specific axis.
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy.
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
The superclass of classes that are constructed using generic parameters. This class provides the para...
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
const M::mapped_type & get(const M &m, const typename M::key_type &k)
void conservativeResize(Index pointCount)
Resize the cloud to pointCount points, conserving existing ones.
static T anyabs(const T &v)
Parametrizable::Parameters Parameters
Functions and classes that are not dependant on scalar type are defined in this namespace.
MaxDistDataPointsFilter(const Parameters ¶ms=Parameters())
Constructor, uses parameter interface.
mp2p_icp
Author(s):
autogenerated on Thu Dec 26 2024 03:48:12