DGtal
0.6.devel
|
#include <FMMPointFunctors.h>
Public Types | |
typedef TImage | Image |
typedef Image::Point | Point |
typedef Image::Value | Value |
typedef TSet | Set |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((CImage< TImage >)) | |
BOOST_CONCEPT_ASSERT ((CDigitalSet< TSet >)) | |
BOOST_STATIC_ASSERT ((boost::is_same< Point, typename TSet::Point >::value)) | |
LInfLocalDistance (Image &aImg, TSet &aSet) | |
LInfLocalDistance (const LInfLocalDistance &other) | |
LInfLocalDistance & | operator= (const LInfLocalDistance &other) |
~LInfLocalDistance () | |
Value | operator() (const Point &aPoint) |
void | selfDisplay (std::ostream &out) const |
Data Fields | |
Image * | myImgPtr |
Set * | mySetPtr |
Private Types | |
typedef std::vector< Value > | Values |
Private Member Functions | |
Value | compute (Values &aValueList) const |
Aim: Class for the computation of the LInf-distance at some point p, from the available distance values of some points lying in the 1-neighborhood of p (ie. points at a L1-distance to p equal to 1).
Description of template class 'LInfLocalDistance'
If there is only one available distance value v in the 1-neighborhood of p, the computed value is merely incremented or decremented. Otherwise, it is the maximum over all the available distance value in the 1-neighborhood of p.
It is a model of CPointFunctor.
TImage | model of CImage used for the mapping point-distance value |
TSet | model of CDigitalSet for storing points whose distance value is known |
Definition at line 356 of file FMMPointFunctors.h.
typedef TImage DGtal::LInfLocalDistance< TImage, TSet >::Image |
Definition at line 364 of file FMMPointFunctors.h.
typedef Image::Point DGtal::LInfLocalDistance< TImage, TSet >::Point |
Definition at line 365 of file FMMPointFunctors.h.
typedef TSet DGtal::LInfLocalDistance< TImage, TSet >::Set |
Definition at line 370 of file FMMPointFunctors.h.
typedef Image::Value DGtal::LInfLocalDistance< TImage, TSet >::Value |
Definition at line 366 of file FMMPointFunctors.h.
|
private |
Definition at line 375 of file FMMPointFunctors.h.
|
inline |
|
inline |
|
inline |
DGtal::LInfLocalDistance< TImage, TSet >::BOOST_CONCEPT_ASSERT | ( | (CImage< TImage >) | ) |
image
DGtal::LInfLocalDistance< TImage, TSet >::BOOST_CONCEPT_ASSERT | ( | (CDigitalSet< TSet >) | ) |
set
DGtal::LInfLocalDistance< TImage, TSet >::BOOST_STATIC_ASSERT | ( | (boost::is_same< Point, typename TSet::Point >::value) | ) |
|
inlineprivate |
Returns the LInf-distance at some point, knowing the distance of its neighbors
aValueList | the distance of (some of) the neighbors |
Definition at line 568 of file FMMPointFunctors.ih.
|
inline |
LInf-distance computation at aPoint , from the available distance values of the 1-neighbors of aPoint .
aPoint | the point for which the distance is computed |
Definition at line 510 of file FMMPointFunctors.ih.
References DGtal::findAndGetValue().
|
inline |
Assignment.
other | the object to copy. |
Definition at line 486 of file FMMPointFunctors.ih.
References DGtal::LInfLocalDistance< TImage, TSet >::myImgPtr, and DGtal::LInfLocalDistance< TImage, TSet >::mySetPtr.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 593 of file FMMPointFunctors.ih.
Image* DGtal::LInfLocalDistance< TImage, TSet >::myImgPtr |
Aliasing pointer on the underlying image.
Definition at line 380 of file FMMPointFunctors.h.
Referenced by DGtal::LInfLocalDistance< TImage, TSet >::operator=().
Set* DGtal::LInfLocalDistance< TImage, TSet >::mySetPtr |
Aliasing pointer on the underlying set.
Definition at line 382 of file FMMPointFunctors.h.
Referenced by DGtal::LInfLocalDistance< TImage, TSet >::operator=().