CGAL 5.0.3 - Classification
|
#include <CGAL/Classification/Feature/Eigenvalue.h>
CGAL::Classification::Feature_base.
Feature based on the eigenvalues of the covariance matrix of a local neighborhood.
Its default name is "eigenvalue_0", "eigenvalue_1" or "eigenvalue_2", depending on which eigenvalue is chosen in the constructor.
Public Member Functions | |
template<typename InputRange > | |
Eigenvalue (const InputRange &input, const Classification::Local_eigen_analysis &eigen, unsigned int idx) | |
Constructs the feature. More... | |
Public Member Functions inherited from CGAL::Classification::Feature_base | |
const std::string & | name () const |
Returns the name of the feature (initialized to abstract_feature for Feature_base ). | |
void | set_name (const std::string &name) |
Changes the name of the feature. | |
virtual float | value (std::size_t index)=0 |
Returns the value taken by the feature for at the item for the item at position index . More... | |
Protected Attributes | |
const Classification::Local_eigen_analysis & | eigen |
unsigned int | m_idx |
CGAL::Classification::Feature::Eigenvalue::Eigenvalue | ( | const InputRange & | input, |
const Classification::Local_eigen_analysis & | eigen, | ||
unsigned int | idx | ||
) |
Constructs the feature.
Input | model of ConstRange . Its iterator type is RandomAccessIterator . |
input | input range. |
eigen | class with precomputed eigenvectors and eigenvalues. |
idx | index of the eigen value (0, 1 or 2). |