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

#include <DGtal/topology/DigitalTopologyTraits.h>

## Static Public Attributes

static const Dimension GEODESIC_NEIGHBORHOOD_SIZE = dim

## Detailed Description

Aim: the traits classes for DigitalTopology types.

Description of template class 'DigitalTopologyTraits'

Template Parameters
 TForegroundAdjacency any model of CAdjacency. TBackgroundAdjacency any model of CAdjacency. dim the 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 ([8]). They specify for GEODESIC_NEIGHBORHOOD_SIZE:

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

Definition at line 73 of file DigitalTopologyTraits.h.

## Field Documentation

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: