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)) | |
L2FirstOrderLocalDistance (Image &aImg, TSet &aSet) | |
L2FirstOrderLocalDistance (const L2FirstOrderLocalDistance &other) | |
L2FirstOrderLocalDistance & | operator= (const L2FirstOrderLocalDistance &other) |
~L2FirstOrderLocalDistance () | |
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 |
Value | gradientNorm (const Value &aValue, const Values &aValueList) const |
Aim: Class for the computation of the Euclidean 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 'L2FirstOrderLocalDistance' <p> The computed value is such that the upwind gradient of the distance map is one, ie. it is the minimum solution \form#156 over all quadrants, verifying the following quadratic equation:
\( \sum_{i = 1 \ldots d } ( \Phi - \Phi_i )^2 \) where \( \Phi_i \) is the distance value of the point preceeding or following p along the \( i \) axis.
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 92 of file FMMPointFunctors.h.
typedef TImage DGtal::L2FirstOrderLocalDistance< TImage, TSet >::Image |
Definition at line 101 of file FMMPointFunctors.h.
typedef Image::Point DGtal::L2FirstOrderLocalDistance< TImage, TSet >::Point |
Definition at line 102 of file FMMPointFunctors.h.
typedef TSet DGtal::L2FirstOrderLocalDistance< TImage, TSet >::Set |
Definition at line 107 of file FMMPointFunctors.h.
typedef Image::Value DGtal::L2FirstOrderLocalDistance< TImage, TSet >::Value |
Definition at line 103 of file FMMPointFunctors.h.
|
private |
Definition at line 112 of file FMMPointFunctors.h.
|
inline |
|
inline |
|
inline |
DGtal::L2FirstOrderLocalDistance< TImage, TSet >::BOOST_CONCEPT_ASSERT | ( | (CImage< TImage >) | ) |
image
DGtal::L2FirstOrderLocalDistance< TImage, TSet >::BOOST_CONCEPT_ASSERT | ( | (CDigitalSet< TSet >) | ) |
set
DGtal::L2FirstOrderLocalDistance< TImage, TSet >::BOOST_STATIC_ASSERT | ( | (boost::is_same< Point, typename TSet::Point >::value) | ) |
|
inlineprivate |
Returns an approximation of the Euclidean distance at some point, knowing the distance of its neighbors
aValueList | the distance of (some of) the neighbors |
Definition at line 170 of file FMMPointFunctors.ih.
|
inlineprivate |
Returns the squared euclidean norm of the gradient of the distance map
aValue | the distance value of the point where the gradient is computed |
aValueList | the distance value of (some of) the neighbors |
Definition at line 224 of file FMMPointFunctors.ih.
|
inline |
Euclidean 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 113 of file FMMPointFunctors.ih.
References DGtal::findAndGetValue().
|
inline |
Assignment.
other | the object to copy. |
Definition at line 88 of file FMMPointFunctors.ih.
References DGtal::L2FirstOrderLocalDistance< TImage, TSet >::myImgPtr, and DGtal::L2FirstOrderLocalDistance< TImage, TSet >::mySetPtr.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 241 of file FMMPointFunctors.ih.
Image* DGtal::L2FirstOrderLocalDistance< TImage, TSet >::myImgPtr |
Aliasing pointer on the underlying image.
Definition at line 117 of file FMMPointFunctors.h.
Referenced by DGtal::L2FirstOrderLocalDistance< TImage, TSet >::operator=().
Set* DGtal::L2FirstOrderLocalDistance< TImage, TSet >::mySetPtr |
Aliasing pointer on the underlying set.
Definition at line 119 of file FMMPointFunctors.h.
Referenced by DGtal::L2FirstOrderLocalDistance< TImage, TSet >::operator=().