DGtal  0.9.4beta
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

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

Definition at line 79 of file ImageContainerBySTLVector.h.

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

Definition at line 78 of file ImageContainerBySTLVector.h.

Constructor & Destructor Documentation

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

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

Definition at line 86 of file ImageContainerBySTLVector.h.

References DGtal::DistanceFunctorFromPoint< TImage >::myImagePtr.

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

Field Documentation

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

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