Aim: A trivial embedder for digital points, which corresponds to the canonic injection of Zn into Rn.
More...
#include <DGtal/kernel/CanonicEmbedder.h>
template<typename TSpace>
struct DGtal::CanonicEmbedder< TSpace >
Aim: A trivial embedder for digital points, which corresponds to the canonic injection of Zn into Rn.
Description of class 'CanonicEmbedder'
Model of CPointEmbedder.
- Template Parameters
-
TSpace | the type of digital Space where the embedder works. |
- Examples
- shapes/viewMarchingCubes.cpp, shapes/viewPolygonalMarchingCubes.cpp, and topology/volMarchingCubes.cpp.
Definition at line 64 of file CanonicEmbedder.h.
◆ Argument
template<typename TSpace >
◆ Integer
template<typename TSpace >
◆ Point
template<typename TSpace >
◆ RealPoint
template<typename TSpace >
◆ Self
template<typename TSpace >
◆ Space
template<typename TSpace >
◆ Value
template<typename TSpace >
◆ Vector
template<typename TSpace >
◆ ~CanonicEmbedder()
template<typename TSpace >
◆ BOOST_CONCEPT_ASSERT()
template<typename TSpace >
◆ ceil()
template<typename TSpace >
- Parameters
-
p | any point in the Euclidean space. |
- Returns
- the digital point ceil( p ).
◆ embed()
template<typename TSpace >
Map a digital point to its corresponding point in the Euclidean space.
- Parameters
-
dp | any digital point in the digital space. |
- Returns
- its canconical embedding in the Euclidean space.
◆ floor()
template<typename TSpace >
- Parameters
-
p | any point in the Euclidean space. |
- Returns
- the digital point floor( p ).
◆ isValid()
template<typename TSpace >
Checks the validity/consistency of the object.
- Returns
- 'true' if the object is valid, 'false' otherwise.
◆ operator()()
template<typename TSpace >
Map a digital point to its corresponding point in the Euclidean space.
- Parameters
-
dp | any digital point in the digital space. |
- Returns
- its canconical embedding in the Euclidean space.
◆ round()
template<typename TSpace >
- Parameters
-
p | any point in the Euclidean space. |
- Returns
- the digital point round( p ), i.e. the "closest" digital point.
◆ selfDisplay()
template<typename TSpace >
Writes/Displays the object on an output stream.
- Parameters
-
out | the output stream where the object is written. |
The documentation for this struct was generated from the following file: