DGtal  0.9.3

#include <DGtal/topology/DigitalTopology.h>

Public Member Functions

~DigitalTopology ()

DigitalTopology (const DigitalTopology &other)

DigitalTopologyProperties properties () const

ReverseTopology reverseTopology () const

void selfDisplay (std::ostream &out) const

bool isValid () const

Protected Member Functions

DigitalTopology ()

Private Member Functions

DigitalTopologyoperator= (const DigitalTopology &other)

Private Attributes

const DigitalTopologyProperties myProps

Detailed Description

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.

typedef SpaceND< int, 2 > Zi2;
typedef DT48::ReverseTopology DT84;
cout << dt << std::endl;
DT84 opp_dt = dt.reverseTopology();
cout << opp_dt << std::endl;
Template Parameters
Examples:
topology/3dBorderExtraction.cpp.

Definition at line 95 of file DigitalTopology.h.

Member Typedef Documentation

Definition at line 100 of file DigitalTopology.h.

◆ BackPoint

Definition at line 103 of file DigitalTopology.h.

Definition at line 99 of file DigitalTopology.h.

◆ Point

Definition at line 101 of file DigitalTopology.h.

◆ ReverseTopology

Opposite topology type.

Definition at line 112 of file DigitalTopology.h.

◆ DigitalTopology() [1/3]

 DGtal::DigitalTopology< TForegroundAdjacency, TBackgroundAdjacency >::DigitalTopology ( ConstAlias< ForegroundAdjacency > aKappa, ConstAlias< BackgroundAdjacency > aLambda, DigitalTopologyProperties props = UNKNOWN_DT )

Defines the digital topology (kappa,lambda).

Parameters
 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.

Destructor.

◆ DigitalTopology() [2/3]

Copy constructor.

Parameters
 other the object to clone.

◆ DigitalTopology() [3/3]

protected

Constructor. Forbidden by default (protected to avoid g++ warnings).

◆ isValid()

Checks the validity/consistency of the object.

Returns
'true' if the object is valid, 'false' otherwise.

◆ kappa()

Returns
a const reference to the foreground connectedness.

◆ lambda()

Returns
a const reference to the background connectedness.

◆ operator=()

private

Assignment.

Parameters
 other the object to copy.
Returns
a reference on 'this'. Forbidden by default.

◆ properties()

Returns
JORDAN iff the topology is Jordan, NOT_JORDAN iff the topology is known to be NOT_JORDAN, UNKNOWN otherwise.

◆ reverseTopology()

Returns
a digital topology object which is the reverse topology of this (ie.

$(\lambda,\kappa)$

.

◆ selfDisplay()

Writes/Displays the object on an output stream.

Parameters
 out the output stream where the object is written.

◆ myKappa

private

a const reference to the adjacency object chosen for the foreground topology.

Definition at line 188 of file DigitalTopology.h.

◆ myLambda

private

a const reference to the adjacency object chosen for the background topology.

Definition at line 194 of file DigitalTopology.h.