de.lmu.ifi.dbs.elki.distance.distancefunction.colorhistogram
Class RGBHistogramQuadraticDistanceFunction

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
      extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractVectorDoubleDistanceFunction
          extended by de.lmu.ifi.dbs.elki.distance.distancefunction.WeightedDistanceFunction
              extended by de.lmu.ifi.dbs.elki.distance.distancefunction.colorhistogram.RGBHistogramQuadraticDistanceFunction
All Implemented Interfaces:
DistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDoubleDistanceFunction<NumberVector<?,?>>, InspectionUtilFrequentlyScanned, Parameterizable

@Reference(authors="J. Hafner, H. S.Sawhney, W. Equits, M. Flickner, W. Niblack",
           title="Efficient Color Histogram Indexing for Quadratic Form Distance Functions",
           booktitle="IEEE Trans. on Pattern Analysis and Machine Intelligence, Vol. 17, No. 7, July 1995",
           url="http://dx.doi.org/10.1109/34.391417")
public class RGBHistogramQuadraticDistanceFunction
extends WeightedDistanceFunction

Distance function for RGB color histograms based on a quadratic form and color similarity. This is (unverified) attributed to

James Hafner, Harpreet S.Sawhney, Will Equits, Myron Flickner and Wayne Niblack
Efficient Color Histogram Indexing for Quadratic Form Distance Functions
IEEE Trans. on Pattern Analysis and Machine Intelligence, Vol. 17, No. 7, July 1995


Nested Class Summary
static class RGBHistogramQuadraticDistanceFunction.Parameterizer
          Parameterization class.
 
Field Summary
static OptionID BPP_ID
          Parameter for the kernel dimensionality.
 
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.WeightedDistanceFunction
weightMatrix
 
Constructor Summary
RGBHistogramQuadraticDistanceFunction(int bpp)
          Constructor.
 
Method Summary
static Matrix computeWeightMatrix(int bpp)
          Compute weight matrix for a RGB color histogram
 boolean equals(Object obj)
           
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.WeightedDistanceFunction
doubleDistance, getInputTypeRestriction
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractVectorDoubleDistanceFunction
distance, getDistanceFactory
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction
instantiate, isMetric, isSymmetric
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.DistanceFunction
instantiate, isMetric, isSymmetric
 

Field Detail

BPP_ID

public static final OptionID BPP_ID
Parameter for the kernel dimensionality.

Constructor Detail

RGBHistogramQuadraticDistanceFunction

public RGBHistogramQuadraticDistanceFunction(int bpp)
Constructor.

Parameters:
bpp - bins per plane.
Method Detail

computeWeightMatrix

public static Matrix computeWeightMatrix(int bpp)
Compute weight matrix for a RGB color histogram

Parameters:
bpp - bins per plane
Returns:
Weight matrix

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Release 0.4.0 (2011-09-20_1324)