de.lmu.ifi.dbs.elki.data.images
Class ComputeHSBColorHistogram

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.images.AbstractComputeColorHistogram
      extended by de.lmu.ifi.dbs.elki.data.images.ComputeHSBColorHistogram
All Implemented Interfaces:
ComputeColorHistogram, InspectionUtilFrequentlyScanned, Parameterizable
Direct Known Subclasses:
ComputeNaiveHSBColorHistogram

public class ComputeHSBColorHistogram
extends AbstractComputeColorHistogram

Compute color histograms in a Hue-Saturation-Brightness model.


Nested Class Summary
static class ComputeHSBColorHistogram.Parameterizer
          Parameterization class.
 
Field Summary
static OptionID BINSPERPLANE_ID
          Parameter that specifies the number of bins (per plane) to use.
(package private)  int quantb
          Number of bins in brightness to use.
(package private)  int quanth
          Number of bins in hue to use.
(package private)  int quants
          Number of bins in saturation to use.
 
Constructor Summary
ComputeHSBColorHistogram(int quanth, int quants, int quantb)
          Constructor.
 
Method Summary
protected  int getBinForColor(int rgb)
          Compute the bin number from a pixel color value.
protected  int getNumBins()
          Get the number of bins.
 
Methods inherited from class de.lmu.ifi.dbs.elki.data.images.AbstractComputeColorHistogram
computeColorHistogram
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BINSPERPLANE_ID

public static final OptionID BINSPERPLANE_ID
Parameter that specifies the number of bins (per plane) to use.

Key: -rgbhist.bpp


quanth

int quanth
Number of bins in hue to use.


quants

int quants
Number of bins in saturation to use.


quantb

int quantb
Number of bins in brightness to use.

Constructor Detail

ComputeHSBColorHistogram

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

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

getBinForColor

protected int getBinForColor(int rgb)
Description copied from class: AbstractComputeColorHistogram
Compute the bin number from a pixel color value.

Specified by:
getBinForColor in class AbstractComputeColorHistogram
Parameters:
rgb - Pixel color value
Returns:
Bin number

getNumBins

protected int getNumBins()
Description copied from class: AbstractComputeColorHistogram
Get the number of bins.

Specified by:
getNumBins in class AbstractComputeColorHistogram
Returns:
Number of bins

Release 0.4.0 (2011-09-20_1324)