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)) | |
L1LocalDistance (Image &aImg, TSet &aSet) | |
L1LocalDistance (const L1LocalDistance &other) | |
L1LocalDistance & | operator= (const L1LocalDistance &other) |
~L1LocalDistance () | |
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 L1-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 'L1LocalDistance'
The computed value is merely the minimum over all the available distance values in the 1-neighborhood of p, plus one.
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 471 of file FMMPointFunctors.h.
typedef TImage DGtal::L1LocalDistance< TImage, TSet >::Image |
Definition at line 479 of file FMMPointFunctors.h.
typedef Image::Point DGtal::L1LocalDistance< TImage, TSet >::Point |
Definition at line 480 of file FMMPointFunctors.h.
typedef TSet DGtal::L1LocalDistance< TImage, TSet >::Set |
Definition at line 485 of file FMMPointFunctors.h.
typedef Image::Value DGtal::L1LocalDistance< TImage, TSet >::Value |
Definition at line 481 of file FMMPointFunctors.h.
|
private |
Definition at line 490 of file FMMPointFunctors.h.
|
inline |
|
inline |
|
inline |
DGtal::L1LocalDistance< TImage, TSet >::BOOST_CONCEPT_ASSERT | ( | (CImage< TImage >) | ) |
image
DGtal::L1LocalDistance< TImage, TSet >::BOOST_CONCEPT_ASSERT | ( | (CDigitalSet< TSet >) | ) |
set
DGtal::L1LocalDistance< TImage, TSet >::BOOST_STATIC_ASSERT | ( | (boost::is_same< Point, typename TSet::Point >::value) | ) |
|
inlineprivate |
Returns the L1-distance at some point, knowing the distance of its neighbors
aValueList | the distance of (some of) the neighbors |
Definition at line 691 of file FMMPointFunctors.ih.
|
inline |
L1-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 648 of file FMMPointFunctors.ih.
References DGtal::findAndGetValue().
|
inline |
Assignment.
other | the object to copy. |
Definition at line 624 of file FMMPointFunctors.ih.
References DGtal::L1LocalDistance< TImage, TSet >::myImgPtr, and DGtal::L1LocalDistance< TImage, TSet >::mySetPtr.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 712 of file FMMPointFunctors.ih.
Image* DGtal::L1LocalDistance< TImage, TSet >::myImgPtr |
Aliasing pointer on the underlying image.
Definition at line 495 of file FMMPointFunctors.h.
Referenced by DGtal::L1LocalDistance< TImage, TSet >::operator=().
Set* DGtal::L1LocalDistance< TImage, TSet >::mySetPtr |
Aliasing pointer on the underlying set.
Definition at line 497 of file FMMPointFunctors.h.
Referenced by DGtal::L1LocalDistance< TImage, TSet >::operator=().