DGtal 1.3.0
|
Aim: Represents a digital topology as a couple of adjacency relations. More...
#include <DGtal/topology/DigitalTopology.h>
Public Types | |
typedef TForegroundAdjacency | ForegroundAdjacency |
typedef TBackgroundAdjacency | BackgroundAdjacency |
typedef ForegroundAdjacency::Point | Point |
typedef BackgroundAdjacency::Point | BackPoint |
typedef DigitalTopology< BackgroundAdjacency, ForegroundAdjacency > | ReverseTopology |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CAdjacency< ForegroundAdjacency >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CAdjacency< BackgroundAdjacency >)) | |
DigitalTopology (ConstAlias< ForegroundAdjacency > aKappa, ConstAlias< BackgroundAdjacency > aLambda, DigitalTopologyProperties props=UNKNOWN_DT) | |
~DigitalTopology () | |
DigitalTopology (const DigitalTopology &other) | |
const ForegroundAdjacency & | kappa () const |
const BackgroundAdjacency & | lambda () const |
DigitalTopologyProperties | properties () const |
ReverseTopology | reverseTopology () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Protected Member Functions | |
DigitalTopology () | |
Private Member Functions | |
DigitalTopology & | operator= (const DigitalTopology &other) |
Private Attributes | |
const ForegroundAdjacency & | myKappa |
const BackgroundAdjacency & | myLambda |
const DigitalTopologyProperties | myProps |
Aim: Represents a digital topology as a couple of adjacency relations.
Description of template class 'DigitalTopology'
The most famous are the (4,8) and (8,4) topologies on Z^2 (see seminal Rosenfeld paper). The two given adjacency relations should be defined for all digital points used afterwards. For instance, they should operate on points of the same dimension. The first adjacency defines the foreground topology while the second adjacency defines the background topology. The opposite topology is the reverse couple. Both adjacencies should be instantiable.
A digital topology is classically denoted by a couple \( (\kappa,\lambda) \), which explains the notations in the class.
TForegroundAdjacency | any model of CAdjacency. |
TBackgroundAdjacency | any model of CAdjacency. |
Definition at line 95 of file DigitalTopology.h.
typedef TBackgroundAdjacency DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::BackgroundAdjacency |
Definition at line 100 of file DigitalTopology.h.
typedef BackgroundAdjacency::Point DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::BackPoint |
Definition at line 103 of file DigitalTopology.h.
typedef TForegroundAdjacency DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::ForegroundAdjacency |
Definition at line 99 of file DigitalTopology.h.
typedef ForegroundAdjacency::Point DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::Point |
Definition at line 101 of file DigitalTopology.h.
typedef DigitalTopology<BackgroundAdjacency,ForegroundAdjacency> DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::ReverseTopology |
Opposite topology type.
Definition at line 112 of file DigitalTopology.h.
DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::DigitalTopology | ( | ConstAlias< ForegroundAdjacency > | aKappa, |
ConstAlias< BackgroundAdjacency > | aLambda, | ||
DigitalTopologyProperties | props = UNKNOWN_DT |
||
) |
Defines the digital topology (kappa,lambda).
aKappa | a const reference to the adjacency object chosen for the foreground topology. |
aLambda | a const reference to the adjacency object chosen for the background topology. |
props | an hint of the properties of this digital topology, default is UNKNOWN. |
DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::~DigitalTopology | ( | ) |
Destructor.
DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::DigitalTopology | ( | const DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency > & | other | ) |
Copy constructor.
other | the object to clone. |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::BOOST_CONCEPT_ASSERT | ( | (concepts::CAdjacency< BackgroundAdjacency >) | ) |
DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::BOOST_CONCEPT_ASSERT | ( | (concepts::CAdjacency< ForegroundAdjacency >) | ) |
bool DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
const ForegroundAdjacency & DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::kappa | ( | ) | const |
const BackgroundAdjacency & DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::lambda | ( | ) | const |
|
private |
Assignment.
other | the object to copy. |
DigitalTopologyProperties DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::properties | ( | ) | const |
ReverseTopology DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::reverseTopology | ( | ) | const |
\[ (\lambda,\kappa) \]
.void DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
a const reference to the adjacency object chosen for the foreground topology.
Definition at line 188 of file DigitalTopology.h.
|
private |
a const reference to the adjacency object chosen for the background topology.
Definition at line 194 of file DigitalTopology.h.
|
private |
an hint of the properties of this digital topology, default is UNKNOWN.
Definition at line 200 of file DigitalTopology.h.