\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.12 - Classification
CGAL::Classification::Feature_base Class Referenceabstract

#include <CGAL/Classification/Feature_base.h>

Inherited by CGAL::Classification::Feature::Anisotropy, CGAL::Classification::Feature::Distance_to_plane< PointRange, PointMap >, CGAL::Classification::Feature::Echo_scatter< GeomTraits, PointRange, PointMap, EchoMap >, CGAL::Classification::Feature::Eigentropy, CGAL::Classification::Feature::Elevation< GeomTraits, PointRange, PointMap >, CGAL::Classification::Feature::Hsv< GeomTraits, PointRange, ColorMap >, CGAL::Classification::Feature::Linearity, CGAL::Classification::Feature::Omnivariance, CGAL::Classification::Feature::Planarity, CGAL::Classification::Feature::Simple_feature< InputRange, PropertyMap >, CGAL::Classification::Feature::Sphericity, CGAL::Classification::Feature::Sum_eigenvalues, CGAL::Classification::Feature::Surface_variation, CGAL::Classification::Feature::Vertical_dispersion< GeomTraits, PointRange, PointMap >, and CGAL::Classification::Feature::Verticality< GeomTraits >.

Definition

Abstract class describing a classification feature that associates a scalar value to each item of the classification input.

Examples:
Classification/example_feature.cpp.

Public Member Functions

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...
 

Member Function Documentation

◆ value()

virtual float CGAL::Classification::Feature_base::value ( std::size_t  index)
pure virtual

Returns the value taken by the feature for at the item for the item at position index.

This method must be implemented by inherited classes.

Examples:
Classification/example_feature.cpp.