\( \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::Distance_to_plane< PointRange, PointMap > Class Template Reference

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

Inherits from

CGAL::Classification::Feature_base.

Definition

Feature based on local distance to a fitted plane.

Characterizing a level of non-planarity can help to identify noisy parts of the input such as vegetation. This feature computes the distance of a point to a locally fitted plane.

Its default name is "distance_to_plane".

Template Parameters
PointRangemodel of ConstRange. Its iterator type is RandomAccessIterator and its value type is the key type of PointMap.
PointMapmodel of ReadablePropertyMap whose key type is the value type of the iterator of PointRange and value type is CGAL::Point_3.

Public Member Functions

 Distance_to_plane (const PointRange &input, PointMap point_map, const Local_eigen_analysis &eigen)
 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...
 

Constructor & Destructor Documentation

◆ Distance_to_plane()

template<typename PointRange , typename PointMap >
CGAL::Classification::Feature::Distance_to_plane< PointRange, PointMap >::Distance_to_plane ( const PointRange &  input,
PointMap  point_map,
const Local_eigen_analysis eigen 
)

Constructs the feature.

Parameters
inputpoint range.
point_mapproperty map to access the input points.
eigenclass with precomputed eigenvectors and eigenvalues.