CGAL 5.1.1 - Classification
CGAL::Classification::Feature::Elevation< GeomTraits, PointRange, PointMap > Class Template Reference

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

Inherits from

CGAL::Classification::Feature_base.

Definition

Feature based on local elevation.

The local position of the ground can be computed for urban scenes. This feature computes the distance to the local estimation of the ground. It is useful to discriminate the ground from horizontal roofs.

Its default name is "elevation".

Template Parameters
GeomTraitsmodel of CGAL Kernel.
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 GeomTraits::Point_3.

Public Member Functions

 Elevation (const PointRange &input, PointMap point_map, const Grid &grid, float radius_dtm=-1.)
 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

◆ Elevation()

template<typename GeomTraits , typename PointRange , typename PointMap >
CGAL::Classification::Feature::Elevation< GeomTraits, PointRange, PointMap >::Elevation ( const PointRange &  input,
PointMap  point_map,
const Grid grid,
float  radius_dtm = -1. 
)

Constructs the feature.

Parameters
inputpoint range.
point_mapproperty map to access the input points.
gridprecomputed Planimetric_grid.
radius_dtmradius for digital terrain modeling (should be larger than the width and length of the largest building).