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

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.HSBHistogramQuadraticDistanceFunction
All Implemented Interfaces:
DistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDoubleDistanceFunction<NumberVector<?,?>>, InspectionUtilFrequentlyScanned, Parameterizable

@Reference(authors="J. R. Smith, S. F. Chang",
           title="VisualSEEk: a fully automated content-based image query system",
           booktitle="Proceedings of the fourth ACM international conference on Multimedia 1997",
           url="http://dx.doi.org/10.1145/244130.244151")
public class HSBHistogramQuadraticDistanceFunction
extends WeightedDistanceFunction

Distance function for HSB color histograms based on a quadratic form and color similarity. The matrix is filled according to:

VisualSEEk: a fully automated content-based image query system
Smith, J.R. and Chang, S.F.
Proceedings of the fourth ACM international conference on Multimedia 1997


Nested Class Summary
static class HSBHistogramQuadraticDistanceFunction.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
HSBHistogramQuadraticDistanceFunction(int quanth, int quants, int quantb)
          Constructor.
 
Method Summary
static Matrix computeWeightMatrix(int quanth, int quants, int quantb)
          Compute the weight matrix for HSB similarity.
 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

HSBHistogramQuadraticDistanceFunction

public HSBHistogramQuadraticDistanceFunction(int quanth,
                                             int quants,
                                             int quantb)
Constructor.

Parameters:
quanth - Hue bins
quants - Saturation bins
quantb - Brightness bins
Method Detail

computeWeightMatrix

public static Matrix computeWeightMatrix(int quanth,
                                         int quants,
                                         int quantb)
Compute the weight matrix for HSB similarity.

Parameters:
quanth - H bins
quants - S bins
quantb - B bins
Returns:
Weight matrix

equals

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

Release 0.4.0 (2011-09-20_1324)