|
DGtal 2.0.0
|
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). More...
#include <DGtal/geometry/volumes/distance/FMMPointFunctors.h>
Public Types | |
| typedef TImage | Image |
| typedef Image::Point | Point |
| typedef Image::Value | Value |
| typedef TSet | Set |
Public Member Functions | |
| BOOST_CONCEPT_ASSERT ((concepts::CImage< TImage >)) | |
| image | |
| BOOST_CONCEPT_ASSERT ((concepts::CDigitalSet< TSet >)) | |
| set | |
| 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 |
| Aliasing pointer on the underlying image. | |
| Set * | mySetPtr |
| Aliasing pointer on the underlying set. | |
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 472 of file FMMPointFunctors.h.
| typedef TImage DGtal::L1LocalDistance< TImage, TSet >::Image |
Definition at line 480 of file FMMPointFunctors.h.
| typedef Image::Point DGtal::L1LocalDistance< TImage, TSet >::Point |
Definition at line 481 of file FMMPointFunctors.h.
| typedef TSet DGtal::L1LocalDistance< TImage, TSet >::Set |
Definition at line 486 of file FMMPointFunctors.h.
| typedef Image::Value DGtal::L1LocalDistance< TImage, TSet >::Value |
Definition at line 482 of file FMMPointFunctors.h.
|
private |
Definition at line 491 of file FMMPointFunctors.h.
| DGtal::L1LocalDistance< TImage, TSet >::L1LocalDistance | ( | Image & | aImg, |
| TSet & | aSet ) |
Constructor from an image and a set. NB: only pointers are stored
| aImg | any distance map |
| aSet | any digital set |
Referenced by L1LocalDistance(), and operator=().
| DGtal::L1LocalDistance< TImage, TSet >::L1LocalDistance | ( | const L1LocalDistance< TImage, TSet > & | other | ) |
| DGtal::L1LocalDistance< TImage, TSet >::~L1LocalDistance | ( | ) |
Destructor. Does nothing.
| DGtal::L1LocalDistance< TImage, TSet >::BOOST_CONCEPT_ASSERT | ( | (concepts::CDigitalSet< TSet >) | ) |
set
| DGtal::L1LocalDistance< TImage, TSet >::BOOST_CONCEPT_ASSERT | ( | (concepts::CImage< TImage >) | ) |
image
| DGtal::L1LocalDistance< TImage, TSet >::BOOST_STATIC_ASSERT | ( | (boost::is_same< Point, typename TSet::Point >::value) | ) |
|
private |
Returns the L1-distance at some point, knowing the distance of its neighbors
| aValueList | the distance of (some of) the neighbors |
| Value DGtal::L1LocalDistance< TImage, TSet >::operator() | ( | const Point & | aPoint | ) |
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 |
References aPoint.
| L1LocalDistance & DGtal::L1LocalDistance< TImage, TSet >::operator= | ( | const L1LocalDistance< TImage, TSet > & | other | ) |
Assignment.
| other | the object to copy. |
References L1LocalDistance().
| void DGtal::L1LocalDistance< TImage, TSet >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
| Image* DGtal::L1LocalDistance< TImage, TSet >::myImgPtr |
Aliasing pointer on the underlying image.
Definition at line 496 of file FMMPointFunctors.h.
| Set* DGtal::L1LocalDistance< TImage, TSet >::mySetPtr |
Aliasing pointer on the underlying set.
Definition at line 498 of file FMMPointFunctors.h.