DGtal  1.5.beta
DGtal::DigitalTopologyTraits< TForegroundAdjacency, TBackgroundAdjacency, dim > Struct Template Reference

Aim: the traits classes for DigitalTopology types. More...

#include <DGtal/topology/DigitalTopologyTraits.h>

Static Public Attributes

static const Dimension GEODESIC_NEIGHBORHOOD_SIZE = dim
 

Detailed Description

template<typename TForegroundAdjacency, typename TBackgroundAdjacency, Dimension dim>
struct DGtal::DigitalTopologyTraits< TForegroundAdjacency, TBackgroundAdjacency, dim >

Aim: the traits classes for DigitalTopology types.

Description of template class 'DigitalTopologyTraits'

Template Parameters
TForegroundAdjacencyany model of CAdjacency.
TBackgroundAdjacencyany model of CAdjacency.
dimthe dimension of the embedding digital space.

The traits are specialized for the classical (4,8) and (8,4) adjacencies in 2D and (6,18), (6,26), (26,6) and (18,6) adjacencies in 3D, following the works of Bertrand and Couprie ([13]). They specify for GEODESIC_NEIGHBORHOOD_SIZE:

  • 2 for (4,8) and (8,4) -> ok
  • 1 for (6,26) (previously set to 2 by [13])
  • 2 for (6,18) (previously set to 3 by [13])
  • 3 for (18,6) (previously set to 2 by [13])
  • 2 for (26,6) (previously set to 1 by [13])

Definition at line 73 of file DigitalTopologyTraits.h.

Field Documentation

◆ GEODESIC_NEIGHBORHOOD_SIZE

template<typename TForegroundAdjacency , typename TBackgroundAdjacency , Dimension dim>
const Dimension DGtal::DigitalTopologyTraits< TForegroundAdjacency, TBackgroundAdjacency, dim >::GEODESIC_NEIGHBORHOOD_SIZE = dim
static

Definition at line 77 of file DigitalTopologyTraits.h.


The documentation for this struct was generated from the following file: