Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::extras::MMDistance Class Reference

#include <ExtraProximities.h>

Inheritance diagram for prapi::extras::MMDistance:

prapi::ProximityMeasure< double > Object List of all members.

Detailed Description

A proximity measure represented in "Manjunath B.S.

and Ma W.Y (1996) Texture Features for Browsing and Retrieval of Image data. IEEE PAMI 18(8):837-842." In short, this measure is a city block distance scaled with the standard deviation of each feature.

Public Methods

 MMDistance (const util::List< Sample< double > > &allSamples)
 Create a new "Manjunath and Ma" type distance measure.

double getProximity (const util::List< double > &sample, const util::List< double > &model, double stopAfter=MAXDOUBLE) const throw (ProximityException&)

Constructor & Destructor Documentation

prapi::extras::MMDistance::MMDistance const util::List< Sample< double > > &    allSamples

Create a new "Manjunath and Ma" type distance measure.

This measure needs a set of samples at initialization because it needs to calculate the standard deviation of each feature.

allSamples  the samples between which distances are calculated

The documentation for this class was generated from the following files:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.