CVR-Lib last update 20 Sep 2009

cvr::distanceType< T > Class Template Reference
[Types]

This class defines the appropriate return types when calculating the distance between two values of type T. More...

#include <cvrDistanceType.h>

List of all members.

Public Types

typedef distanceType< typename
T::value_type >::distance_type 
distance_type
typedef distanceType< typename
T::value_type >
::square_distance_type 
square_distance_type
typedef distanceType< typename
T::value_type >
::fp_distance_type 
fp_distance_type


Detailed Description

template<class T>
class cvr::distanceType< T >

This class defines the appropriate return types when calculating the distance between two values of type T.

These can be simple types like int or double or lti types like vector<T>, rgbaPixel, etc. There are three different distance types:


Member Typedef Documentation

template<class T>
typedef distanceType<typename T::value_type>::distance_type cvr::distanceType< T >::distance_type

Suggested distance type for distances that use simple accumulation of type elements (for example l1Distantor).

template<class T>
typedef distanceType<typename T::value_type>::fp_distance_type cvr::distanceType< T >::fp_distance_type

Suggested distance type for distances that use accumulation of type elements or their squares and use a typical floating point (fp) operation like sqrt or log on that.

(for example l2Distantor).

template<class T>
typedef distanceType<typename T::value_type>::square_distance_type cvr::distanceType< T >::square_distance_type

Suggested distance type for distances that use accumulation of squares of type elements (for example l2SqrDistantor).


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

Generated on Sun Sep 20 22:09:07 2009 for CVR-Lib by Doxygen 1.5.8