Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal 2.0.0
DGtal::DistanceFunctorFromPoint< TImage > Class Template Reference

#include <DGtal/images/ImageContainerBySTLVector.h>

Public Types

typedef TImage::Point Point
typedef TImage::Difference Difference

Public Member Functions

 DistanceFunctorFromPoint (const TImage *aImagePtr)
Difference operator() (const Point &aPoint) const

Private Attributes

const TImage * myImagePtr

Detailed Description

template<typename TImage>
class DGtal::DistanceFunctorFromPoint< TImage >

Distance Functor used to create the ranges. Such functor returns the distance between the image "begin" and a given point.

Template Parameters
TImageImage type

Definition at line 73 of file ImageContainerBySTLVector.h.

Member Typedef Documentation

◆ Difference

template<typename TImage>
typedef TImage::Difference DGtal::DistanceFunctorFromPoint< TImage >::Difference

Definition at line 79 of file ImageContainerBySTLVector.h.

◆ Point

template<typename TImage>
typedef TImage::Point DGtal::DistanceFunctorFromPoint< TImage >::Point

Definition at line 78 of file ImageContainerBySTLVector.h.

Constructor & Destructor Documentation

◆ DistanceFunctorFromPoint()

template<typename TImage>
DGtal::DistanceFunctorFromPoint< TImage >::DistanceFunctorFromPoint ( const TImage * aImagePtr)
inline

Member Function Documentation

◆ operator()()

template<typename TImage>
Difference DGtal::DistanceFunctorFromPoint< TImage >::operator() ( const Point & aPoint) const
inline

Definition at line 86 of file ImageContainerBySTLVector.h.

87 {
88 return Difference ( myImagePtr->linearized ( aPoint ) );
89 }

References aPoint, and myImagePtr.

Field Documentation

◆ myImagePtr

template<typename TImage>
const TImage* DGtal::DistanceFunctorFromPoint< TImage >::myImagePtr
private

Definition at line 91 of file ImageContainerBySTLVector.h.

Referenced by DistanceFunctorFromPoint(), and operator()().


The documentation for this class was generated from the following file: