DGtal
0.6.devel
|
#include <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 ((CAdjacency< ForegroundAdjacency >)) | |
BOOST_CONCEPT_ASSERT ((CAdjacency< BackgroundAdjacency >)) | |
DigitalTopology (const ForegroundAdjacency &aKappa, const 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' <p> 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 94 of file DigitalTopology.h.
typedef TBackgroundAdjacency DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::BackgroundAdjacency |
Definition at line 99 of file DigitalTopology.h.
typedef BackgroundAdjacency::Point DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::BackPoint |
Definition at line 102 of file DigitalTopology.h.
typedef TForegroundAdjacency DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::ForegroundAdjacency |
Definition at line 98 of file DigitalTopology.h.
typedef ForegroundAdjacency::Point DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::Point |
Definition at line 100 of file DigitalTopology.h.
typedef DigitalTopology<BackgroundAdjacency,ForegroundAdjacency> DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::ReverseTopology |
Opposite topology type.
Definition at line 111 of file DigitalTopology.h.
|
inline |
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. |
Definition at line 66 of file DigitalTopology.ih.
|
inline |
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 83 of file DigitalTopology.ih.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::BOOST_CONCEPT_ASSERT | ( | (CAdjacency< ForegroundAdjacency >) | ) |
DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::BOOST_CONCEPT_ASSERT | ( | (CAdjacency< BackgroundAdjacency >) | ) |
|
inline |
Checks the validity/consistency of the object.
Definition at line 168 of file DigitalTopology.ih.
|
inline |
Definition at line 96 of file DigitalTopology.ih.
|
inline |
Definition at line 107 of file DigitalTopology.ih.
|
private |
Assignment.
other | the object to copy. |
|
inline |
Definition at line 119 of file DigitalTopology.ih.
|
inline |
\[ (\lambda,\kappa) \]
.Definition at line 133 of file DigitalTopology.ih.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 149 of file DigitalTopology.ih.
References DGtal::JORDAN_DT, DGtal::NOT_JORDAN_DT, and DGtal::UNKNOWN_DT.
|
private |
a const reference to the adjacency object chosen for the foreground topology.
Definition at line 187 of file DigitalTopology.h.
|
private |
a const reference to the adjacency object chosen for the background topology.
Definition at line 193 of file DigitalTopology.h.
|
private |
an hint of the properties of this digital topology, default is UNKNOWN.
Definition at line 199 of file DigitalTopology.h.