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

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

public class ComputeNaiveRGBColorHistogram
extends AbstractComputeColorHistogram

Compute a (rather naive) RGB color histogram.


Nested Class Summary
static class ComputeNaiveRGBColorHistogram.Parameterizer
          Parameterization class.
 
Field Summary
static OptionID BINSPERPLANE_ID
          Parameter that specifies the number of bins (per plane) to use.
(package private)  int quant
          Number of bins in each dimension to use.
 
Constructor Summary
ComputeNaiveRGBColorHistogram(int quant)
          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


quant

int quant
Number of bins in each dimension to use.

Constructor Detail

ComputeNaiveRGBColorHistogram

public ComputeNaiveRGBColorHistogram(int quant)
Constructor.

Parameters:
quant - Number of bins to use.
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)