latest version v1.9 - last update 10 Apr 2010 |
This class defines the appropriate return types when calculating the distance between to values of type T. More...
#include <ltiDistanceType.h>
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 |
This class defines the appropriate return types when calculating the distance between to values of type T.
These can be simple types like int or double or lti types like vector<T>, rgbPixel etc. There are three different distance types:
typedef distanceType<typename T::value_type>::distance_type lti::distanceType< T >::distance_type |
Suggested distance type for distances that use simple accumulation of type elements (for example l1Distantor).
typedef distanceType<typename T::value_type>::fp_distance_type lti::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).
typedef distanceType<typename T::value_type>::square_distance_type lti::distanceType< T >::square_distance_type |
Suggested distance type for distances that use accumulation of squares of type elements (for example l2SqrDistantor).