DGtal
1.5.beta
|
Aim: Class for the computation of the Euclidean distance at some point p, from the available distance values in the neighborhood of p. Contrary to L2FirstOrderLocalDistance, the distance values are not available from the points adjacent to p but instead from the (d-1)-cells lying between p and these points.
More...
#include <DGtal/geometry/volumes/distance/FMMPointFunctors.h>
Public Types | |
typedef TMap | Map |
map More... | |
typedef Map::mapped_type | Value |
typedef TKSpace | KSpace |
cellular grid More... | |
typedef KSpace::Point | Point |
typedef KSpace::Cell | Cell |
Public Member Functions | |
L2FirstOrderLocalDistanceFromCells (ConstAlias< KSpace > aK, Map &aMap) | |
L2FirstOrderLocalDistanceFromCells (const L2FirstOrderLocalDistanceFromCells &other) | |
L2FirstOrderLocalDistanceFromCells & | operator= (const L2FirstOrderLocalDistanceFromCells &other) |
~L2FirstOrderLocalDistanceFromCells () | |
Value | operator() (const Point &aPoint) |
void | selfDisplay (std::ostream &out) const |
Data Fields | |
const KSpace * | myKSpace |
Aliasing pointer on the underlying cellular grid. More... | |
Map * | myMap |
Aliasing pointer on the underlying mapping. More... | |
Private Types | |
typedef std::vector< Value > | Values |
Private Member Functions | |
Value | compute (Values &aValueList) const |
Aim: Class for the computation of the Euclidean distance at some point p, from the available distance values in the neighborhood of p. Contrary to L2FirstOrderLocalDistance, the distance values are not available from the points adjacent to p but instead from the (d-1)-cells lying between p and these points.
Description of template class 'L2FirstOrderLocalDistanceFromCells'
TKSpace | a model of cellular grid |
TMap | a model of associative container used for the mapping cells-value |
isIndirect | a bool equal to 'false' if the tested points are expected to be directly incident to the cells (default) and 'true' otherwise |
Definition at line 585 of file FMMPointFunctors.h.
typedef KSpace::Cell DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::Cell |
Definition at line 599 of file FMMPointFunctors.h.
typedef TKSpace DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::KSpace |
cellular grid
Definition at line 597 of file FMMPointFunctors.h.
typedef TMap DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::Map |
map
Definition at line 593 of file FMMPointFunctors.h.
typedef KSpace::Point DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::Point |
Definition at line 598 of file FMMPointFunctors.h.
typedef Map::mapped_type DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::Value |
Definition at line 594 of file FMMPointFunctors.h.
|
private |
Definition at line 603 of file FMMPointFunctors.h.
DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::L2FirstOrderLocalDistanceFromCells | ( | ConstAlias< KSpace > | aK, |
Map & | aMap | ||
) |
Constructor from a space and a map. NB: only pointers are stored
aK | a space. |
aMap | any distance map |
DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::L2FirstOrderLocalDistanceFromCells | ( | const L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect > & | other | ) |
Copy constructor.
other | the object to clone. |
DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::~L2FirstOrderLocalDistanceFromCells | ( | ) |
Destructor. Does nothing.
|
private |
Returns an approximation of the Euclidean distance at some point, knowing the distance of its adjacent cells contained in aValueList
aValueList | the distance of (some of) the neighbors |
Value DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::operator() | ( | const Point & | aPoint | ) |
Euclidean distance computation at aPoint , from the available distance values of the adjacent cells.
aPoint | the point for which the distance is computed |
L2FirstOrderLocalDistanceFromCells& DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::operator= | ( | const L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect > & | other | ) |
Assignment.
other | the object to copy. |
void DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
const KSpace* DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::myKSpace |
Aliasing pointer on the underlying cellular grid.
Definition at line 608 of file FMMPointFunctors.h.
Map* DGtal::L2FirstOrderLocalDistanceFromCells< TKSpace, TMap, isIndirect >::myMap |
Aliasing pointer on the underlying mapping.
Definition at line 610 of file FMMPointFunctors.h.