Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

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.ComputeNaiveHSBColorHistogram
All Implemented Interfaces:
ComputeColorHistogram, Parameterizable

public class ComputeNaiveHSBColorHistogram
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  IntParameter BINSPERPLANE_PARAM
          Parameter that specifies the number of bins (per plane) to use.
(package private)  int quant
          Number of bins in each dimension to use.
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
ComputeNaiveHSBColorHistogram(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


BINSPERPLANE_PARAM

private final IntParameter BINSPERPLANE_PARAM
Parameter that specifies the number of bins (per plane) to use.

Key: -rgbhist.bpp


quant

int quant
Number of bins in each dimension to use.

Constructor Detail

ComputeNaiveHSBColorHistogram

public ComputeNaiveHSBColorHistogram(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)