DGtal 1.4.0
Loading...
Searching...
No Matches
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

Definition at line 83 of file ImageContainerBySTLVector.h.

83 : myImagePtr(aImagePtr)
84 {};

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 }
const Point aPoint(3, 4)

References aPoint(), and DGtal::DistanceFunctorFromPoint< TImage >::myImagePtr.

Field Documentation

◆ myImagePtr

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

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