DGtal
0.6.devel
|
#include <KhalimskySpaceND.h>
Data Structures | |
struct | AnyCellCollection |
struct | CellMap |
struct | SCellMap |
struct | SurfelMap |
Public Types | |
typedef TInteger | Integer |
typedef NumberTraits< Integer > ::UnsignedVersion | Size |
typedef KhalimskyCell< dim, Integer > | Cell |
typedef SignedKhalimskyCell < dim, Integer > | SCell |
typedef SCell | Surfel |
typedef bool | Sign |
typedef CellDirectionIterator < dim, Integer > | DirIterator |
typedef PointVector< dim, Integer > | Point |
typedef PointVector< dim, Integer > | Vector |
typedef SpaceND< dim, Integer > | Space |
typedef KhalimskySpaceND< dim, Integer > | KhalimskySpace |
typedef AnyCellCollection< Cell > | Cells |
typedef AnyCellCollection< SCell > | SCells |
typedef std::set< Cell > | CellSet |
typedef std::set< SCell > | SCellSet |
typedef std::set< SCell > | SurfelSet |
Public Member Functions | |
~KhalimskySpaceND () | |
KhalimskySpaceND () | |
KhalimskySpaceND (const KhalimskySpaceND &other) | |
KhalimskySpaceND & | operator= (const KhalimskySpaceND &other) |
bool | init (const Point &lower, const Point &upper, bool closed) |
Size | size (Dimension k) const |
Integer | min (Dimension k) const |
Integer | max (Dimension k) const |
const Point & | lowerBound () const |
const Point & | upperBound () const |
const Cell & | lowerCell () const |
const Cell & | upperCell () const |
bool | isSpaceClosed () const |
Cell | uCell (const Point &kp) const |
Cell | uCell (const Point &p, const Cell &c) const |
SCell | sCell (const Point &kp, Sign sign=POS) const |
SCell | sCell (const Point &p, const SCell &c) const |
Cell | uSpel (const Point &p) const |
SCell | sSpel (const Point &p, Sign sign=POS) const |
Cell | uPointel (const Point &p) const |
SCell | sPointel (const Point &p, Sign sign=POS) const |
Integer | uKCoord (const Cell &c, Dimension k) const |
Integer | uCoord (const Cell &c, Dimension k) const |
Point | uKCoords (const Cell &c) const |
Point | uCoords (const Cell &c) const |
Integer | sKCoord (const SCell &c, Dimension k) const |
Integer | sCoord (const SCell &c, Dimension k) const |
Point | sKCoords (const SCell &c) const |
Point | sCoords (const SCell &c) const |
Sign | sSign (const SCell &c) const |
void | uSetKCoord (Cell &c, Dimension k, const Integer &i) const |
void | sSetKCoord (SCell &c, Dimension k, const Integer &i) const |
void | uSetCoord (Cell &c, Dimension k, Integer i) const |
void | sSetCoord (SCell &c, Dimension k, Integer i) const |
void | uSetKCoords (Cell &c, const Point &kp) const |
void | sSetKCoords (SCell &c, const Point &kp) const |
void | uSetCoords (Cell &c, const Point &kp) const |
void | sSetCoords (SCell &c, const Point &kp) const |
void | sSetSign (SCell &c, Sign s) const |
SCell | signs (const Cell &p, Sign s) const |
Cell | unsigns (const SCell &p) const |
SCell | sOpp (const SCell &p) const |
Integer | uTopology (const Cell &p) const |
Integer | sTopology (const SCell &p) const |
Dimension | uDim (const Cell &p) const |
Dimension | sDim (const SCell &p) const |
bool | uIsSurfel (const Cell &b) const |
bool | sIsSurfel (const SCell &b) const |
bool | uIsOpen (const Cell &p, Dimension k) const |
bool | sIsOpen (const SCell &p, Dimension k) const |
DirIterator | uDirs (const Cell &p) const |
DirIterator | sDirs (const SCell &p) const |
DirIterator | uOrthDirs (const Cell &p) const |
DirIterator | sOrthDirs (const SCell &p) const |
Dimension | uOrthDir (const Cell &s) const |
Dimension | sOrthDir (const SCell &s) const |
Cell | uFirst (const Cell &p) const |
Cell | uLast (const Cell &p) const |
Cell | uGetIncr (const Cell &p, Dimension k) const |
bool | uIsMax (const Cell &p, Dimension k) const |
bool | uIsInside (const Cell &p, Dimension k) const |
Cell | uGetMax (const Cell &p, Dimension k) const |
Cell | uGetDecr (const Cell &p, Dimension k) const |
bool | uIsMin (const Cell &p, Dimension k) const |
Cell | uGetMin (const Cell &p, Dimension k) const |
Cell | uGetAdd (const Cell &p, Dimension k, const Integer &x) const |
Cell | uGetSub (const Cell &p, Dimension k, const Integer &x) const |
Integer | uDistanceToMax (const Cell &p, Dimension k) const |
Integer | uDistanceToMin (const Cell &p, Dimension k) const |
Cell | uTranslation (const Cell &p, const Vector &vec) const |
Cell | uProjection (const Cell &p, const Cell &bound, Dimension k) const |
void | uProject (Cell &p, const Cell &bound, Dimension k) const |
bool | uNext (Cell &p, const Cell &lower, const Cell &upper) const |
SCell | sFirst (const SCell &p) const |
SCell | sLast (const SCell &p) const |
SCell | sGetIncr (const SCell &p, Dimension k) const |
bool | sIsMax (const SCell &p, Dimension k) const |
bool | sIsInside (const SCell &p, Dimension k) const |
SCell | sGetMax (const SCell &p, Dimension k) const |
SCell | sGetDecr (const SCell &p, Dimension k) const |
bool | sIsMin (const SCell &p, Dimension k) const |
SCell | sGetMin (const SCell &p, Dimension k) const |
SCell | sGetAdd (const SCell &p, Dimension k, const Integer &x) const |
SCell | sGetSub (const SCell &p, Dimension k, const Integer &x) const |
Integer | sDistanceToMax (const SCell &p, Dimension k) const |
Integer | sDistanceToMin (const SCell &p, Dimension k) const |
SCell | sTranslation (const SCell &p, const Vector &vec) const |
SCell | sProjection (const SCell &p, const SCell &bound, Dimension k) const |
void | sProject (SCell &p, const SCell &bound, Dimension k) const |
bool | sNext (SCell &p, const SCell &lower, const SCell &upper) const |
Cells | uNeighborhood (const Cell &cell) const |
SCells | sNeighborhood (const SCell &cell) const |
Cells | uProperNeighborhood (const Cell &cell) const |
SCells | sProperNeighborhood (const SCell &cell) const |
Cell | uAdjacent (const Cell &p, Dimension k, bool up) const |
SCell | sAdjacent (const SCell &p, Dimension k, bool up) const |
Cell | uIncident (const Cell &c, Dimension k, bool up) const |
SCell | sIncident (const SCell &c, Dimension k, bool up) const |
Cells | uLowerIncident (const Cell &c) const |
Cells | uUpperIncident (const Cell &c) const |
SCells | sLowerIncident (const SCell &c) const |
SCells | sUpperIncident (const SCell &c) const |
Cells | uFaces (const Cell &c) const |
Cells | uCoFaces (const Cell &c) const |
bool | sDirect (const SCell &p, Dimension k) const |
SCell | sDirectIncident (const SCell &p, Dimension k) const |
SCell | sIndirectIncident (const SCell &p, Dimension k) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Static Public Attributes | |
static const Dimension | dimension = dim |
static const Dimension | DIM = dim |
static const Sign | POS = true |
static const Sign | NEG = false |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((CCommutativeRing< TInteger >)) |
Private Attributes | |
Point | myLower |
Point | myUpper |
Cell | myCellLower |
Cell | myCellUpper |
bool | myIsClosed |
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex, whose cells are defined as an array of integers. The topology of the cells is defined by the parity of the coordinates (even: closed, odd: open).
Description of template class 'KhalimskySpaceND'
The space is generally finite (except for arbitrary size integers). The user should choose between a closed (default) cell space or an open cell space.
dim | the dimension of the digital space. |
TInteger | the Integer class used to specify the arithmetic computations (default type = int32). NB: Essentially a backport from ImaGene. |
Definition at line 358 of file KhalimskySpaceND.h.
typedef KhalimskyCell< dim, Integer > DGtal::KhalimskySpaceND< dim, TInteger >::Cell |
Definition at line 371 of file KhalimskySpaceND.h.
typedef AnyCellCollection<Cell> DGtal::KhalimskySpaceND< dim, TInteger >::Cells |
Definition at line 407 of file KhalimskySpaceND.h.
typedef std::set<Cell> DGtal::KhalimskySpaceND< dim, TInteger >::CellSet |
Preferred type for defining a set of Cell(s).
Definition at line 412 of file KhalimskySpaceND.h.
typedef CellDirectionIterator< dim, Integer > DGtal::KhalimskySpaceND< dim, TInteger >::DirIterator |
Definition at line 375 of file KhalimskySpaceND.h.
typedef TInteger DGtal::KhalimskySpaceND< dim, TInteger >::Integer |
Arithmetic ring induced by (+,-,*) and Integer numbers.
Definition at line 365 of file KhalimskySpaceND.h.
typedef KhalimskySpaceND<dim, Integer> DGtal::KhalimskySpaceND< dim, TInteger >::KhalimskySpace |
Definition at line 382 of file KhalimskySpaceND.h.
typedef PointVector< dim, Integer > DGtal::KhalimskySpaceND< dim, TInteger >::Point |
Definition at line 378 of file KhalimskySpaceND.h.
typedef SignedKhalimskyCell< dim, Integer > DGtal::KhalimskySpaceND< dim, TInteger >::SCell |
Definition at line 372 of file KhalimskySpaceND.h.
typedef AnyCellCollection<SCell> DGtal::KhalimskySpaceND< dim, TInteger >::SCells |
Definition at line 408 of file KhalimskySpaceND.h.
typedef std::set<SCell> DGtal::KhalimskySpaceND< dim, TInteger >::SCellSet |
Preferred type for defining a set of SCell(s).
Definition at line 414 of file KhalimskySpaceND.h.
typedef bool DGtal::KhalimskySpaceND< dim, TInteger >::Sign |
Definition at line 374 of file KhalimskySpaceND.h.
typedef NumberTraits<Integer>::UnsignedVersion DGtal::KhalimskySpaceND< dim, TInteger >::Size |
Type used to represent sizes in the digital space.
Definition at line 368 of file KhalimskySpaceND.h.
typedef SpaceND<dim, Integer> DGtal::KhalimskySpaceND< dim, TInteger >::Space |
Definition at line 381 of file KhalimskySpaceND.h.
typedef SCell DGtal::KhalimskySpaceND< dim, TInteger >::Surfel |
Definition at line 373 of file KhalimskySpaceND.h.
typedef std::set<SCell> DGtal::KhalimskySpaceND< dim, TInteger >::SurfelSet |
Preferred type for defining a set of surfels (always signed cells).
Definition at line 416 of file KhalimskySpaceND.h.
typedef PointVector< dim, Integer > DGtal::KhalimskySpaceND< dim, TInteger >::Vector |
Definition at line 379 of file KhalimskySpaceND.h.
|
inline |
|
inline |
Default onstructor.
Definition at line 354 of file KhalimskySpaceND.ih.
References DGtal::NumberTraits< T >::max(), and DGtal::NumberTraits< T >::min().
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 368 of file KhalimskySpaceND.ih.
|
private |
|
inline |
Specifies the upper and lower bounds for the maximal cells in this space.
lower_included | the lowest point in this space (digital coords) |
upper_included | the upper point in this space (digital coords) |
closed | 'true' if this space is closed, 'false' if open. |
Definition at line 394 of file KhalimskySpaceND.ih.
References DGtal::BOUNDED.
|
inline |
Definition at line 490 of file KhalimskySpaceND.ih.
|
inline |
Checks the validity/consistency of the object.
Definition at line 1695 of file KhalimskySpaceND.ih.
|
inline |
Definition at line 454 of file KhalimskySpaceND.ih.
|
inline |
Definition at line 472 of file KhalimskySpaceND.ih.
|
inline |
k | a coordinate (from 0 to 'dim()-1'). |
Definition at line 445 of file KhalimskySpaceND.ih.
|
inline |
k | a coordinate (from 0 to 'dim()-1'). |
Definition at line 436 of file KhalimskySpaceND.ih.
|
inline |
Assignment.
other | the object to copy. |
Definition at line 377 of file KhalimskySpaceND.ih.
References DGtal::KhalimskySpaceND< dim, TInteger >::myCellLower, DGtal::KhalimskySpaceND< dim, TInteger >::myCellUpper, DGtal::KhalimskySpaceND< dim, TInteger >::myIsClosed, DGtal::KhalimskySpaceND< dim, TInteger >::myLower, and DGtal::KhalimskySpaceND< dim, TInteger >::myUpper.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
up | if 'true' the orientation is forward along axis [k], otherwise backward. |
Definition at line 1441 of file KhalimskySpaceND.ih.
|
inline |
From the Khalimsky coordinates of a cell and a sign, builds the corresponding unsigned cell.
kp | an integer point (Khalimsky coordinates of cell). |
sign | the sign of the cell (either POS or NEG). |
Definition at line 521 of file KhalimskySpaceND.ih.
|
inline |
From the digital coordinates of a point in Zn and a signed cell type, builds the corresponding signed cell.
p | an integer point (digital coordinates of cell). |
c | another cell defining the topology and sign. |
Definition at line 530 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates, and DGtal::SignedKhalimskyCell< dim, TInteger >::myPositive.
|
inline |
c | any signed cell. |
k | any valid dimension. |
Definition at line 643 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
c | any signed cell. |
Definition at line 662 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
p | any signed cell. |
Definition at line 868 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Return 'true' if the direct orientation of [p] along [k] is in the positive coordinate direction. The direct orientation in a direction allows to go from positive incident cells to positive incident cells. This means that
is always true.
p | any signed cell. |
k | any coordinate. |
Definition at line 1621 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myPositive.
|
inline |
p | any signed cell. |
k | any coordinate. |
Definition at line 1635 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates, and DGtal::SignedKhalimskyCell< dim, TInteger >::myPositive.
|
inline |
Given a signed cell [p], returns an iterator to iterate over each coordinate the cell spans. (A spel spans all coordinates; a surfel all but one, etc). Example:
p | any signed cell. |
Definition at line 929 of file KhalimskySpaceND.ih.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the coordinate that is tested. |
Definition at line 1282 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the coordinate that is tested. |
Definition at line 1291 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 1686 of file KhalimskySpaceND.ih.
|
inline |
Definition at line 1172 of file KhalimskySpaceND.ih.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
x | the increment. |
Definition at line 1260 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
Definition at line 1230 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
Definition at line 1190 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the concerned coordinate. |
Definition at line 1220 of file KhalimskySpaceND.ih.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the concerned coordinate. |
Definition at line 1250 of file KhalimskySpaceND.ih.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
x | the decrement. |
Definition at line 1271 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Creates a signed cell from an unsigned one and a given sign.
p | any unsigned cell. |
s | a sign. |
Definition at line 683 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
c | any signed cell. |
k | any coordinate. |
up | if 'true' the orientation is forward along axis [k], otherwise backward. |
Definition at line 1467 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates, and DGtal::SignedKhalimskyCell< dim, TInteger >::myPositive.
|
inline |
p | any signed cell. |
k | any coordinate. |
Definition at line 1658 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates, and DGtal::SignedKhalimskyCell< dim, TInteger >::myPositive.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the tested coordinate. |
Definition at line 1210 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the tested coordinate. |
Definition at line 1201 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the tested coordinate. |
Definition at line 1241 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
p | any signed cell. |
k | any direction. |
Definition at line 908 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
b | any signed cell. |
Definition at line 890 of file KhalimskySpaceND.ih.
|
inline |
k | a coordinate (from 0 to 'dim()-1'). |
Definition at line 426 of file KhalimskySpaceND.ih.
|
inline |
c | any signed cell. |
k | any valid dimension. |
Definition at line 633 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
c | any signed cell. |
Definition at line 653 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Definition at line 1181 of file KhalimskySpaceND.ih.
|
inline |
c | any signed cell. |
Definition at line 1525 of file KhalimskySpaceND.ih.
|
inline |
Computes the 1-neighborhood of the cell [c] and returns it. It is the set of cells with same topology that are adjacent to [c] and which are within the bounds of this space.
cell | the signed cell of interest. |
Definition at line 1380 of file KhalimskySpaceND.ih.
|
inline |
Increment the cell [p] to its next position (as classically done in a scanning). Example:
p | any cell. |
lower | the lower bound. |
upper | the upper bound. |
Definition at line 1332 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Creates the signed cell with the inverse sign of [p].
p | any signed cell. |
Definition at line 701 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates, and DGtal::SignedKhalimskyCell< dim, TInteger >::myPositive.
|
inline |
Given a signed surfel [s], returns its orthogonal direction (ie, the coordinate where the surfel is closed).
s | a signed surfel |
Definition at line 967 of file KhalimskySpaceND.ih.
References DGtal::CellDirectionIterator< dim, TInteger >::end().
|
inline |
Given a signed cell [p], returns an iterator to iterate over each coordinate the cell does not span. (A spel spans all coordinates; a surfel all but one, etc). Example:
p | any signed cell. |
Definition at line 947 of file KhalimskySpaceND.ih.
|
inline |
From the digital coordinates of a point in Zn, creates the pointel (cell of dimension 0) with these coordinates.
p | an integer point (digital coordinates of cell). |
sign | the sign of the cell (either POS or NEG). |
Definition at line 578 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Projects [p] along the [k]th direction toward [bound]. Otherwise said, p[ k ] == bound[ k ] afterwards.
p | any cell. |
bound | the element acting as bound (same topology as p). |
k | the concerned coordinate. |
Definition at line 1323 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Return the projection of [p] along the [k]th direction toward [bound]. Otherwise said, p[ k ] == bound[ k ] afterwards.
p | any cell. |
bound | the element acting as bound (same topology as p). |
k | the concerned coordinate. |
Definition at line 1312 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Computes the proper 1-neighborhood of the cell [c] and returns it. It is the set of cells with same topology that are adjacent to [c], different from [c] and which are within the bounds of this space.
cell | the signed cell of interest. |
Definition at line 1415 of file KhalimskySpaceND.ih.
|
inline |
Sets the [k]-th digital coordinate of [c] to [i].
c | any signed cell. |
k | any valid dimension. |
i | an integer coordinate within the space. |
Definition at line 747 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Sets the digital coordinates of [c] to [kp].
c | any signed cell. |
kp | the new Khalimsky coordinates for [c]. |
Definition at line 794 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Sets the [k]-th Khalimsky coordinate of [c] to [i].
c | any signed cell. |
k | any valid dimension. |
i | an integer coordinate within the space. |
Definition at line 722 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Sets the Khalimsky coordinates of [c] to [kp].
c | any signed cell. |
kp | the new Khalimsky coordinates for [c]. |
Definition at line 769 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Sets the sign of the cell.
c | (modified) any signed cell. |
s | any sign. |
Definition at line 810 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myPositive.
|
inline |
c | any signed cell. |
Definition at line 674 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myPositive.
|
inline |
From the digital coordinates of a point in Zn, creates the spel (cell of maximal dimension) with these coordinates.
p | an integer point (digital coordinates of cell). |
sign | the sign of the cell (either POS or NEG). |
Definition at line 554 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
p | any signed cell. |
Definition at line 838 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Add the vector [vec] to [p]. NB: you can go out of the space.
p | any cell. |
vec | any pointel. |
Definition at line 1300 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
c | any signed cell. |
Definition at line 1544 of file KhalimskySpaceND.ih.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
up | if 'true' the orientation is forward along axis [k], otherwise backward. |
Definition at line 1432 of file KhalimskySpaceND.ih.
|
inline |
From the Khalimsky coordinates of a cell, builds the corresponding unsigned cell.
kp | an integer point (Khalimsky coordinates of cell). |
Definition at line 500 of file KhalimskySpaceND.ih.
|
inline |
From the digital coordinates of a point in Zn and a cell type, builds the corresponding cell.
p | an integer point (digital coordinates of cell). |
c | another cell defining the topology. |
Definition at line 509 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
c | any unsigned cell. |
Definition at line 1592 of file KhalimskySpaceND.ih.
|
inline |
c | any unsigned cell. |
k | any valid dimension. |
Definition at line 602 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
c | any unsigned cell. |
Definition at line 621 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
p | any unsigned cell. |
Definition at line 855 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Given an unsigned cell [p], returns an iterator to iterate over each coordinate the cell spans. (A spel spans all coordinates; a surfel all but one, etc). Example:
p | any unsigned cell. |
Definition at line 920 of file KhalimskySpaceND.ih.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the coordinate that is tested. |
Definition at line 1091 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the coordinate that is tested. |
Definition at line 1100 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
c | any unsigned cell. |
Definition at line 1563 of file KhalimskySpaceND.ih.
|
inline |
Definition at line 981 of file KhalimskySpaceND.ih.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
x | the increment. |
Definition at line 1069 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
Definition at line 1039 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
Definition at line 999 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the concerned coordinate. |
Definition at line 1029 of file KhalimskySpaceND.ih.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the concerned coordinate. |
Definition at line 1059 of file KhalimskySpaceND.ih.
|
inline |
NB: you can go out of the space.
p | any cell. |
k | the coordinate that is changed. |
x | the decrement. |
Definition at line 1080 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
c | any unsigned cell. |
k | any coordinate. |
up | if 'true' the orientation is forward along axis [k], otherwise backward. |
Definition at line 1452 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the tested coordinate. |
Definition at line 1019 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the tested coordinate. |
Definition at line 1010 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Useful to check if you are going out of the space.
p | any cell. |
k | the tested coordinate. |
Definition at line 1050 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
p | any cell. |
k | any direction. |
Definition at line 899 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
b | any unsigned cell. |
Definition at line 881 of file KhalimskySpaceND.ih.
|
inline |
c | any unsigned cell. |
k | any valid dimension. |
Definition at line 592 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
c | any unsigned cell. |
Definition at line 612 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Definition at line 990 of file KhalimskySpaceND.ih.
|
inline |
|
inline |
Computes the 1-neighborhood of the cell [c] and returns it. It is the set of cells with same topology that are adjacent to [c] and which are within the bounds of this space.
cell | the unsigned cell of interest. |
Definition at line 1362 of file KhalimskySpaceND.ih.
|
inline |
Increment the cell [p] to its next position (as classically done in a scanning). Example:
p | any cell. |
lower | the lower bound. |
upper | the upper bound. |
Definition at line 1141 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Creates an unsigned cell from a signed one.
p | any signed cell. |
Definition at line 692 of file KhalimskySpaceND.ih.
References DGtal::SignedKhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Given an unsigned surfel [s], returns its orthogonal direction (ie, the coordinate where the surfel is closed).
s | an unsigned surfel |
Definition at line 956 of file KhalimskySpaceND.ih.
References DGtal::CellDirectionIterator< dim, TInteger >::end().
|
inline |
Given an unsigned cell [p], returns an iterator to iterate over each coordinate the cell does not span. (A spel spans all coordinates; a surfel all but one, etc). Example:
p | any unsigned cell. |
Definition at line 938 of file KhalimskySpaceND.ih.
|
inline |
From the digital coordinates of a point in Zn, creates the pointel (cell of dimension 0) with these coordinates.
p | an integer point (digital coordinates of cell). |
Definition at line 566 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Definition at line 463 of file KhalimskySpaceND.ih.
|
inline |
Definition at line 481 of file KhalimskySpaceND.ih.
|
inline |
Projects [p] along the [k]th direction toward [bound]. Otherwise said, p[ k ] == bound[ k ] afterwards.
p | any cell. |
bound | the element acting as bound (same topology as p). |
k | the concerned coordinate. |
Definition at line 1132 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Return the projection of [p] along the [k]th direction toward [bound]. Otherwise said, p[ k ] == bound[ k ] afterwards.
p | any cell. |
bound | the element acting as bound (same topology as p). |
k | the concerned coordinate. |
Definition at line 1121 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Computes the proper 1-neighborhood of the cell [c] and returns it. It is the set of cells with same topology that are adjacent to [c], different from [c] and which are within the bounds of this space.
cell | the unsigned cell of interest. |
Definition at line 1398 of file KhalimskySpaceND.ih.
|
inline |
Sets the [k]-th digital coordinate of [c] to [i].
c | any unsigned cell. |
k | any valid dimension. |
i | an integer coordinate within the space. |
Definition at line 734 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Sets the digital coordinates of [c] to [kp].
c | any unsigned cell. |
kp | the new Khalimsky coordinates for [c]. |
Definition at line 778 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Sets the [k]-th Khalimsky coordinate of [c] to [i].
c | any unsigned cell. |
k | any valid dimension. |
i | an integer coordinate within the space. |
Definition at line 710 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Sets the Khalimsky coordinates of [c] to [kp].
c | any unsigned cell. |
kp | the new Khalimsky coordinates for [c]. |
Definition at line 760 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
From the digital coordinates of a point in Zn, creates the spel (cell of maximal dimension) with these coordinates.
p | an integer point (digital coordinates of cell). |
Definition at line 542 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
p | any unsigned cell. |
Definition at line 821 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
Add the vector [vec] to [p]. NB: you can go out of the space.
p | any cell. |
vec | any pointel. |
Definition at line 1109 of file KhalimskySpaceND.ih.
References DGtal::KhalimskyCell< dim, TInteger >::myCoordinates.
|
inline |
|
static |
Definition at line 393 of file KhalimskySpaceND.h.
|
static |
Definition at line 392 of file KhalimskySpaceND.h.
|
private |
Definition at line 1482 of file KhalimskySpaceND.h.
Referenced by DGtal::KhalimskySpaceND< dim, TInteger >::operator=().
|
private |
Definition at line 1483 of file KhalimskySpaceND.h.
Referenced by DGtal::KhalimskySpaceND< dim, TInteger >::operator=().
|
private |
Definition at line 1484 of file KhalimskySpaceND.h.
Referenced by DGtal::KhalimskySpaceND< dim, TInteger >::operator=().
|
private |
Definition at line 1480 of file KhalimskySpaceND.h.
Referenced by DGtal::KhalimskySpaceND< dim, TInteger >::operator=().
|
private |
Definition at line 1481 of file KhalimskySpaceND.h.
Referenced by DGtal::KhalimskySpaceND< dim, TInteger >::operator=().
|
static |
Definition at line 395 of file KhalimskySpaceND.h.
|
static |
Definition at line 394 of file KhalimskySpaceND.h.