w2img::VQSectorization< T >::SimpleDistanceFunction Class Reference

Inheritance diagram for w2img::VQSectorization< T >::SimpleDistanceFunction:

w2img::VQSectorization< T >::DistanceFunction List of all members.

template<class T>
class w2img::VQSectorization< T >::SimpleDistanceFunction


Public Member Functions

virtual ~SimpleDistanceFunction ()
 SimpleDistanceFunction (float dist_wt=1, const std::vector< float > &weights=std::vector< float >())
 supply a weight for each of the inputs and for the distance.
virtual float compute_dist (const VQSectorization::Pixel &a, const VQSectorization::Pixel &b)

Constructor & Destructor Documentation

template<class T>
virtual w2img::VQSectorization< T >::SimpleDistanceFunction::~SimpleDistanceFunction (  )  [inline, virtual]

template<class T>
w2img::VQSectorization< T >::SimpleDistanceFunction::SimpleDistanceFunction ( float  dist_wt = 1,
const std::vector< float > &  weights = std::vector<float>() 
) [inline]

supply a weight for each of the inputs and for the distance.

By default, assumed to be 1.


Member Function Documentation

template<class T>
virtual float w2img::VQSectorization< T >::SimpleDistanceFunction::compute_dist ( const VQSectorization::Pixel a,
const VQSectorization::Pixel b 
) [virtual]

Implements w2img::VQSectorization< T >::DistanceFunction.


Generated on Fri May 4 13:40:24 2012 for WDSS-IIw2algs by  doxygen 1.4.7