Go to the documentation of this file.
42 PointMatcher<T>::DataPointsFilter(
"CutAtDescriptorThresholdDataPointsFilter",
56 inPlaceFilter(output);
68 throw InvalidField(
"CutAtDescriptorThresholdDataPointsFilter: Error, field not found in descriptors.");
71 const int nbPointsIn = cloud.
features.cols();
78 for (
int i = 0; i < nbPointsIn; ++i)
80 const T value(
values(0,i));
81 if (value <= threshold)
90 for (
int i = 0; i < nbPointsIn; ++i)
92 const T value(
values(0,i));
93 if (value >= threshold)
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
bool descriptorExists(const std::string &name) const
Look if a descriptor with a given name exist.
Parametrizable::Parameters Parameters
Functions and classes that are dependant on scalar type are defined in this templatized class.
CutAtDescriptorThresholdDataPointsFilter(const Parameters ¶ms=Parameters())
Constructor, uses parameter interface.
An exception thrown when one tries to access features or descriptors unexisting or of wrong dimension...
void setColFrom(Index thisCol, const DataPoints &that, Index thatCol)
Set column thisCol equal to column thatCol of that, copy features and descriptors if any....
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy.
Matrix features
features of points in the cloud
std::vector< double > values
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)
Subsampling. Cut points with value of a given descriptor above or below a given threshold.
Eigen::Block< Matrix > View
A view on a feature or descriptor.
void conservativeResize(Index pointCount)
Resize the cloud to pointCount points, conserving existing ones.
ConstView getDescriptorViewByName(const std::string &name) const
Get a const view on a descriptor by name, throw an exception if it does not exist.
mp2p_icp
Author(s):
autogenerated on Thu Dec 26 2024 03:48:10