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));
90 for (
int i = 0; i < nbPointsIn; ++i)
92 const T value(values(0,i));
Parametrizable::Parameters Parameters
void setColFrom(Index thisCol, const DataPoints &that, Index thatCol)
Set column thisCol equal to column thatCol of that, copy features and descriptors if any...
ConstView getDescriptorViewByName(const std::string &name) const
Get a const view on a descriptor by name, throw an exception if it does not exist.
PointMatcher< T >::DataPoints::InvalidField InvalidField
Subsampling. Cut points with value of a given descriptor above or below a given threshold.
Functions and classes that are dependant on scalar type are defined in this templatized class...
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.
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
const M::mapped_type & get(const M &m, const typename M::key_type &k)
The superclass of classes that are constructed using generic parameters. This class provides the para...
CutAtDescriptorThresholdDataPointsFilter(const Parameters ¶ms=Parameters())
Constructor, uses parameter interface.
void conservativeResize(Index pointCount)
Resize the cloud to pointCount points, conserving existing ones.
Eigen::Block< Matrix > View
A view on a feature or descriptor.
const std::string descName
Matrix features
features of points in the cloud
PM::DataPointsFilter DataPointsFilter