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;
PointMatcher< T >::Vector Vector
void allocateDescriptor(const std::string &name, const unsigned dim)
Makes sure a descriptor of a given name exists, if present, check its dimensions. ...
ConstView getDescriptorViewByName(const std::string &name) const
Get a const view on a descriptor by name, throw an exception if it does not exist.
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
ObservationDirectionDataPointsFilter(const Parameters ¶ms=Parameters())
Constructor, uses parameter interface.
Functions and classes that are dependant on scalar type are defined in this templatized class...
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...
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Parametrizable::Parameters Parameters
Extract observation direction.
Matrix features
features of points in the cloud
PointMatcher< T >::DataPoints::InvalidField InvalidField
PM::DataPointsFilter DataPointsFilter