Mobios v0.91

mobios.dist
Class ImageMetric

java.lang.Object
  extended by mobios.dist.ImageMetric
All Implemented Interfaces:
Serializable, Metric

public class ImageMetric
extends Object
implements Metric

Computes the distance between images. Designed for the MoBIoS image dataset, ImageMetric may not work for other datasets.

Version:
2005.10.31
Author:
Wenguo Liu, Rui Mao, Willard
See Also:
Serialized Form

Constructor Summary
ImageMetric()
           
 
Method Summary
 double getDistance_Fea(Image one, Image two, int FeaIndex)
          Computes the distance between two images using the given feature index.
 double getDistance(Image one, Image two)
          Computes the distance between two Images
 double getDistance(IndexObject one, IndexObject two)
          Computes the distance between two objects.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMetric

public ImageMetric()
Method Detail

getDistance

public double getDistance(IndexObject one,
                          IndexObject two)
Description copied from interface: Metric
Computes the distance between two objects.

Specified by:
getDistance in interface Metric
Parameters:
one - the first IndexObject to compute distance on
two - the second IndexObject to compute distance on
Returns:
the distance between the two objects

getDistance

public double getDistance(Image one,
                          Image two)
Computes the distance between two Images

Parameters:
one - the first Image to compute the distance on.
two - the second Image to compute the distance on.
Returns:
the distance between the two Images

getDistance_Fea

public double getDistance_Fea(Image one,
                              Image two,
                              int FeaIndex)
Computes the distance between two images using the given feature index.

Parameters:
one - the first Image to compute the distance on.
two - the second Image to compute the distance on.
FeaIndex - the feature on which distance is to be computed.
Returns:
the distance between the two Images

Mobios v0.91

(C) 2002 - 2006 The MoBIoS Group