Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.data.images.AbstractComputeColorHistogram
          extended by de.lmu.ifi.dbs.elki.data.images.ComputeHSBColorHistogram
All Implemented Interfaces:
ComputeColorHistogram, Parameterizable

public class ComputeHSBColorHistogram
extends AbstractComputeColorHistogram

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

Author:
Erich Schubert

Field Summary
static OptionID BINSPERPLANE_ID
          OptionID for BINSPERPLANE_PARAM
private  IntListParameter BINSPERPLANE_PARAM
          Parameter that specifies the number of bins (per plane) to use.
private static List<ParameterConstraint<List<Integer>>> bppConstraints
          Parameter list constraints.
(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.
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
ComputeHSBColorHistogram(Parameterization config)
          Constructor, adhering to Parameterizable
 
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 de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
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
OptionID for BINSPERPLANE_PARAM


bppConstraints

private static final List<ParameterConstraint<List<Integer>>> bppConstraints
Parameter list constraints.


BINSPERPLANE_PARAM

private final IntListParameter BINSPERPLANE_PARAM
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(Parameterization config)
Constructor, adhering to Parameterizable

Parameters:
config - Parameterization
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.3 (2010-03-31_1612)