CGAL 6.2 - Feature graph
Loading...
Searching...
No Matches
SharpnessEstimator Concept Reference

Definition

The concept Sharpness_estimator describes a functor that extracts the sharpness value for a surface element.

Has models
CGAL::Feature_graph::AmbrosioTortorelli_on_image::Sharpness_functor
CGAL::Feature_graph::Sharpness_estimator::Sharpness_estimator_on_surface

Types

typedef unspecified_type Sharpness_value_type
 The type of the sharpness value.
 

Functor

template<typename DimensionTag , typename Index >
Sharpness_value_type operator() (const Index &element_index) const
 returns the sharpness value of the surface element described by a type and an index.
 

Member Typedef Documentation

◆ Sharpness_value_type

The type of the sharpness value.

It is a scalar constructible from the integer 0.

Is model of
RealEmbeddable

Member Function Documentation

◆ operator()()

template<typename DimensionTag , typename Index >
Sharpness_value_type SharpnessEstimator::operator() ( const Index element_index) const

returns the sharpness value of the surface element described by a type and an index.

A low sharpness value should represent a flat area, while a high value implies a sharp feature. For two sharpness values A and B, the value A is has a higher sharpness value iff B < A. Negative values represent smooth areas that should be erased in the selection step of the feature graph extraction method.

Template Parameters
DimensionTaga tag that represent the element type. Can be CGAL::Dimension_tag<0>, CGAL::Dimension_tag<1> or CGAL::Dimension_tag<2>
Indexthe type of index used to identify the element to evaluate, which can be a vertex, an edge, or a facet according to the DimesionTag.
Parameters
element_indexthe index of the element to evaluate.