DGtal 1.4.0
|
Aim: Describes digital adjacencies in a digital domain that are defined with the 1-norm and the infinity-norm. More...
#include <DGtal/topology/DomainMetricAdjacency.h>
Public Types | |
typedef Domain::Space | Space |
typedef Space::Point | Point |
typedef Space::Vector | Vector |
Public Member Functions | |
DomainMetricAdjacency (ConstAlias< Domain > aDomain) | |
DomainMetricAdjacency (const DomainMetricAdjacency &other) | |
~DomainMetricAdjacency () | |
bool | isAdjacentTo (const Point &p1, const Point &p2) const |
bool | isProperlyAdjacentTo (const Point &p1, const Point &p2) const |
template<typename OutputIterator > | |
void | writeNeighborhood (const Point &p, OutputIterator &out_it) const |
template<typename OutputIterator > | |
void | writeProperNeighborhood (const Point &p, OutputIterator &out_it) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Protected Member Functions | |
DomainMetricAdjacency () | |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CDomain< Domain >)) | |
DomainMetricAdjacency & | operator= (const DomainMetricAdjacency &other) |
Private Attributes | |
const Domain & | myDomain |
Aim: Describes digital adjacencies in a digital domain that are defined with the 1-norm and the infinity-norm.
Description of template class 'DomainMetricAdjacency'
It induces the classical 4 and 8 adjacencies in 2D, the 6, 18 and 26 adjacencies in 3D, and the \( \omega \) and \( \alpha \) adjacencies in nD.
Model of a CAdjacency.
Domain | any domain of a digital space (see concept CDomain). |
maxNorm1 | defines which points are adjacent. More precisely, two points are adjacent iff their norm-infinity is less or equal than 1 and if their norm-1 is less or equal than maxNorm1. |
Definition at line 76 of file DomainMetricAdjacency.h.
typedef Space::Point DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::Point |
Definition at line 82 of file DomainMetricAdjacency.h.
typedef Domain::Space DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::Space |
Definition at line 81 of file DomainMetricAdjacency.h.
typedef Space::Vector DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::Vector |
Definition at line 83 of file DomainMetricAdjacency.h.
DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::DomainMetricAdjacency | ( | ConstAlias< Domain > | aDomain | ) |
Constructor from domain.
aDomain | any domain. |
DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::DomainMetricAdjacency | ( | const DomainMetricAdjacency< Domain, maxNorm1, dimension > & | other | ) |
Copy constructor.
other | the object to clone. |
DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::~DomainMetricAdjacency | ( | ) |
Destructor.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
private |
bool DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::isAdjacentTo | ( | const Point & | p1, |
const Point & | p2 ) const |
p1 | any point in this space. |
p2 | any point in this space. |
bool DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::isProperlyAdjacentTo | ( | const Point & | p1, |
const Point & | p2 ) const |
p1 | any point in this space. |
p2 | any point in this space. |
bool DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
Assignment.
other | the object to copy. |
void DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
void DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::writeNeighborhood | ( | const Point & | p, |
OutputIterator & | out_it ) const |
Outputs the whole neighborhood of point [p] as a sequence of *out_it++ = ...
OutputIterator | any output iterator (like std::back_insert_iterator< std::vector<int> >). |
p | any point of this space. |
out_it | any output iterator. |
void DGtal::deprecated::DomainMetricAdjacency< Domain, maxNorm1, dimension >::writeProperNeighborhood | ( | const Point & | p, |
OutputIterator & | out_it ) const |
Outputs the whole proper neighborhood of point [p] (thus without [p] itself) as a sequence of *out_it++ = ...
OutputIterator | any output iterator (like std::back_insert_iterator< std::vector<int> >). |
p | any point of this space. |
out_it | any output iterator. |
|
private |
The associated domain.
Definition at line 176 of file DomainMetricAdjacency.h.