QueryProcessor.SF.ScoringFunction.EMD
Class WrapperEMD

java.lang.Object
  extended by QueryProcessor.SF.ScoringFunction.EMD.WrapperEMD

public class WrapperEMD
extends java.lang.Object

Wrapper class for computing the EMD distance.


Constructor Summary
WrapperEMD()
           
 
Method Summary
static double distance(Image i1, Image i2, Matrix distances)
          Computes the regular EMD distance between two images given the matrix of distances between images' regions.
static double getMetricDistance(Image i1, Image i2, Matrix distances)
          Computes the metric EMD distance between two images given the matrix of distances between images' regions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperEMD

public WrapperEMD()
Method Detail

distance

public static double distance(Image i1,
                              Image i2,
                              Matrix distances)
Computes the regular EMD distance between two images given the matrix of distances between images' regions.

Parameters:
i1 - First image.
i2 - Second image.
distances - Matrix containing distance values between images' regions.
Returns:
The regular EMD distance between the two given images.

getMetricDistance

public static double getMetricDistance(Image i1,
                                       Image i2,
                                       Matrix distances)
Computes the metric EMD distance between two images given the matrix of distances between images' regions.

Parameters:
i1 - First image.
i2 - Second image.
distances - Matrix containing distance values between images' regions.
Returns:
The metric EMD distance between the two given images.