Inheritance diagram for 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) |
virtual w2img::VQSectorization< T >::SimpleDistanceFunction::~SimpleDistanceFunction | ( | ) | [inline, virtual] |
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.
virtual float w2img::VQSectorization< T >::SimpleDistanceFunction::compute_dist | ( | const VQSectorization::Pixel & | a, | |
const VQSectorization::Pixel & | b | |||
) | [virtual] |
Implements w2img::VQSectorization< T >::DistanceFunction.