Go to the documentation of this file.
55 inPlaceFilter(output);
64 const int featDim(cloud.
features.cols());
68 (boost::format(
"ObservationDirectionDataPointsFilter: Error, works only in 2 or 3 dimensions, cloud has %1% dimensions.") %
dim).str()
81 for (
int i = 0; i < featDim; ++i)
85 observationDirections.col(i) = center - p;
PM::DataPointsFilter DataPointsFilter
void allocateDescriptor(const std::string &name, const unsigned dim)
Makes sure a descriptor of a given name exists, if present, check its dimensions.
Extract observation direction.
Functions and classes that are dependant on scalar type are defined in this templatized class.
An exception thrown when one tries to access features or descriptors unexisting or of wrong dimension...
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
The superclass of classes that are constructed using generic parameters. This class provides the para...
Parametrizable::Parameters Parameters
const M::mapped_type & get(const M &m, const typename M::key_type &k)
ObservationDirectionDataPointsFilter(const Parameters ¶ms=Parameters())
Constructor, uses parameter interface.
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
PointMatcher< T >::Vector Vector
ConstView getDescriptorViewByName(const std::string &name) const
Get a const view on a descriptor by name, throw an exception if it does not exist.