DGtal
0.6.devel
|
#include <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 (const KSpace &K, const Image &f, const Embedder &e, ImageValue 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 ((CImage< TImage >)) |
Private Attributes | |
const KSpace * | myPtrK |
const Image * | myPtrImage |
const Embedder * | myPtrEmbedder |
ImageValue | myIsoValue |
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 68 of file ImageLinearCellEmbedder.h.
typedef Cell DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Argument |
Definition at line 84 of file ImageLinearCellEmbedder.h.
typedef KSpace::Cell DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Cell |
Definition at line 76 of file ImageLinearCellEmbedder.h.
typedef TEmbedder DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Embedder |
Definition at line 75 of file ImageLinearCellEmbedder.h.
typedef TImage DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Image |
Definition at line 74 of file ImageLinearCellEmbedder.h.
typedef Image::Value DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::ImageValue |
Definition at line 83 of file ImageLinearCellEmbedder.h.
typedef Space::Integer DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Integer |
Definition at line 82 of file ImageLinearCellEmbedder.h.
typedef TKSpace DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::KSpace |
Definition at line 73 of file ImageLinearCellEmbedder.h.
typedef Space::Point DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Point |
Definition at line 79 of file ImageLinearCellEmbedder.h.
typedef Space::RealPoint DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::RealPoint |
Definition at line 80 of file ImageLinearCellEmbedder.h.
typedef Space::RealVector DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::RealVector |
Definition at line 81 of file ImageLinearCellEmbedder.h.
typedef KSpace::SCell DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::SCell |
Definition at line 77 of file ImageLinearCellEmbedder.h.
typedef KSpace::Space DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Space |
Definition at line 78 of file ImageLinearCellEmbedder.h.
typedef RealPoint DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::Value |
Definition at line 85 of file ImageLinearCellEmbedder.h.
|
inline |
|
inline |
|
inline |
Copy constructor.
other | the object to copy. |
Definition at line 61 of file ImageLinearCellEmbedder.ih.
|
private |
|
inline |
Maps a digital point to its corresponding point in the Euclidean space.
p | any digital point in the digital space. |
Definition at line 101 of file ImageLinearCellEmbedder.ih.
|
inline |
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. |
Definition at line 111 of file ImageLinearCellEmbedder.ih.
|
inline |
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. |
Definition at line 146 of file ImageLinearCellEmbedder.ih.
References DGtal::NumberTraits< T >::castToDouble().
|
inline |
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 | the threshold value that defines the linear embedding. |
Definition at line 88 of file ImageLinearCellEmbedder.ih.
|
inline |
Checks the validity/consistency of the object.
Definition at line 193 of file ImageLinearCellEmbedder.ih.
|
inline |
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. |
Definition at line 120 of file ImageLinearCellEmbedder.ih.
References DGtal::NumberTraits< T >::castToDouble().
|
inline |
Assignment.
other | the object to copy. |
Definition at line 72 of file ImageLinearCellEmbedder.ih.
References DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::myIsoValue, DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::myPtrEmbedder, DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::myPtrImage, and DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::myPtrK.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 180 of file ImageLinearCellEmbedder.ih.
|
private |
The threshold value for the linear embedding.
Definition at line 191 of file ImageLinearCellEmbedder.h.
Referenced by DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::operator=().
|
private |
A pointer on the digital embedder.
Definition at line 189 of file ImageLinearCellEmbedder.h.
Referenced by DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::operator=().
|
private |
A pointer on the image.
Definition at line 187 of file ImageLinearCellEmbedder.h.
Referenced by DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::operator=().
|
private |
A pointer on the cellular grid space.
Definition at line 185 of file ImageLinearCellEmbedder.h.
Referenced by DGtal::ImageLinearCellEmbedder< TKSpace, TImage, TEmbedder >::operator=().