CGAL 5.1.1 - Classification
CGAL::Classification::Feature::Eigenvalue Class Reference

#include <CGAL/Classification/Feature/Eigenvalue.h>

Inherits from

CGAL::Classification::Feature_base.

Definition

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_analysiseigen
 
unsigned int m_idx
 

Constructor & Destructor Documentation

◆ Eigenvalue()

template<typename InputRange >
CGAL::Classification::Feature::Eigenvalue::Eigenvalue ( const InputRange &  input,
const Classification::Local_eigen_analysis eigen,
unsigned int  idx 
)

Constructs the feature.

Template Parameters
Inputmodel of ConstRange. Its iterator type is RandomAccessIterator.
Parameters
inputinput range.
eigenclass with precomputed eigenvectors and eigenvalues.
idxindex of the eigen value (0, 1 or 2).