DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Private Attributes
DGtal::DistanceFunctorFromPoint< TImage > Class Template Reference

#include <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.

: myImagePtr(aImagePtr)
{};

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.

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

Field Documentation

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

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