DGtal  1.4.beta
Public Types | Public Member Functions | Private Attributes
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)

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

Definition at line 86 of file ImageContainerBySTLVector.h.

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

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

Field Documentation

◆ myImagePtr

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

The documentation for this class was generated from the following file:
const TImage * myImagePtr
Definition: ImageContainerBySTLVector.h:91
const Point aPoint(3, 4)
TImage::Difference Difference
Definition: ImageContainerBySTLVector.h:79