DGtal 1.4.0
|
Aim: a cellular embedder for images. (default constructible, copy constructible, assignable). Model of CCellEmbedder. More...
#include <DGtal/images/ImageLinearCellEmbedder.h>
Public Types | |
typedef TKSpace | KSpace |
typedef TImage | Image |
typedef TEmbedder | Embedder |
typedef KSpace::Cell | Cell |
typedef KSpace::SCell | SCell |
typedef KSpace::Space | Space |
typedef Space::Point | Point |
typedef Space::RealPoint | RealPoint |
typedef Space::RealVector | RealVector |
typedef Space::Integer | Integer |
typedef Image::Value | ImageValue |
typedef Cell | Argument |
typedef RealPoint | Value |
Public Member Functions | |
ImageLinearCellEmbedder () | |
~ImageLinearCellEmbedder () | |
ImageLinearCellEmbedder (const ImageLinearCellEmbedder &other) | |
ImageLinearCellEmbedder & | operator= (const ImageLinearCellEmbedder &other) |
void | init (ConstAlias< KSpace > K, ConstAlias< Image > f, ConstAlias< Embedder > e, double iso_value) |
RealPoint | embed (const Point &p) const |
RealPoint | embedCell (const Cell &cell) const |
RealPoint | embedSCell (const SCell &scell) const |
RealPoint | operator() (const Cell &cell) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CImage< TImage >)) | |
Private Attributes | |
const KSpace * | myPtrK |
A pointer on the cellular grid space. | |
const Image * | myPtrImage |
A pointer on the image. | |
const Embedder * | myPtrEmbedder |
A pointer on the digital embedder. | |
double | myIsoValue |
The threshold value for the linear embedding. | |
Aim: a cellular embedder for images. (default constructible, copy constructible, assignable). Model of CCellEmbedder.
Description of template class 'ImageLinearCellEmbedder'
TKSpace | the cellular grid space definition. |
TImage | the type of implicit function, a model of CImage. |
TEmbedder | the type of digital embedder. |
Definition at line 69 of file ImageLinearCellEmbedder.h.
typedef Cell DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Argument |
Definition at line 85 of file ImageLinearCellEmbedder.h.
typedef KSpace::Cell DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Cell |
Definition at line 77 of file ImageLinearCellEmbedder.h.
typedef TEmbedder DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Embedder |
Definition at line 76 of file ImageLinearCellEmbedder.h.
typedef TImage DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Image |
Definition at line 75 of file ImageLinearCellEmbedder.h.
typedef Image::Value DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::ImageValue |
Definition at line 84 of file ImageLinearCellEmbedder.h.
typedef Space::Integer DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Integer |
Definition at line 83 of file ImageLinearCellEmbedder.h.
typedef TKSpace DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::KSpace |
Definition at line 74 of file ImageLinearCellEmbedder.h.
typedef Space::Point DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Point |
Definition at line 80 of file ImageLinearCellEmbedder.h.
typedef Space::RealPoint DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::RealPoint |
Definition at line 81 of file ImageLinearCellEmbedder.h.
typedef Space::RealVector DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::RealVector |
Definition at line 82 of file ImageLinearCellEmbedder.h.
typedef KSpace::SCell DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::SCell |
Definition at line 78 of file ImageLinearCellEmbedder.h.
typedef KSpace::Space DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Space |
Definition at line 79 of file ImageLinearCellEmbedder.h.
typedef RealPoint DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Value |
Definition at line 86 of file ImageLinearCellEmbedder.h.
DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::ImageLinearCellEmbedder | ( | ) |
Constructor. The object is not valid.
DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::~ImageLinearCellEmbedder | ( | ) |
Destructor.
DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::ImageLinearCellEmbedder | ( | const ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder > & | other | ) |
Copy constructor.
other | the object to copy. |
|
private |
RealPoint DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::embed | ( | const Point & | p | ) | const |
Maps a digital point to its corresponding point in the Euclidean space.
p | any digital point in the digital space. |
RealPoint DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::embedCell | ( | const Cell & | cell | ) | const |
Maps a cell to its corresponding point in the Euclidean space, by a linear guess of its position.
cell | any cell in the cellular grid space. |
RealPoint DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::embedSCell | ( | const SCell & | scell | ) | const |
Maps a signed cell to its corresponding point in the Euclidean space, by a linear guess of its position. NB: the signed is not used.
scell | any cell in the cellular grid space. |
void DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::init | ( | ConstAlias< KSpace > | K, |
ConstAlias< Image > | f, | ||
ConstAlias< Embedder > | e, | ||
double | iso_value ) |
Initializes the embedder with the space K, the implicit function f, the digital embedder e.
K | any cellular grid space. |
f | an image |
e | a digital embedder (like a GaussDigitizer). |
iso_value | the threshold value that defines the linear embedding. |
Referenced by main(), DGtal::Shortcuts< TKSpace >::makePolygonalSurface(), and DGtal::Shortcuts< TKSpace >::makeTriangulatedSurface().
bool DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
RealPoint DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::operator() | ( | const Cell & | cell | ) | const |
Maps a cell to its corresponding point in the Euclidean space, by a linear guess of its position.
cell | any cell in the cellular grid space. |
ImageLinearCellEmbedder & DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::operator= | ( | const ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder > & | other | ) |
Assignment.
other | the object to copy. |
void DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
The threshold value for the linear embedding.
Definition at line 192 of file ImageLinearCellEmbedder.h.
|
private |
A pointer on the digital embedder.
Definition at line 190 of file ImageLinearCellEmbedder.h.
|
private |
A pointer on the image.
Definition at line 188 of file ImageLinearCellEmbedder.h.
|
private |
A pointer on the cellular grid space.
Definition at line 186 of file ImageLinearCellEmbedder.h.