public class ComputeNaiveRGBColorHistogram extends AbstractComputeColorHistogram
Modifier and Type | Class and Description |
---|---|
static class |
ComputeNaiveRGBColorHistogram.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ComputeNaiveRGBColorHistogram(int quant)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getBinForColor(int rgb)
Compute the bin number from a pixel color value.
|
protected int |
getNumBins()
Get the number of bins.
|
computeColorHistogram
public static final OptionID BINSPERPLANE_ID
Key: -rgbhist.bpp
int quant
public ComputeNaiveRGBColorHistogram(int quant)
quant
- Number of bins to use.protected int getBinForColor(int rgb)
AbstractComputeColorHistogram
getBinForColor
in class AbstractComputeColorHistogram
rgb
- Pixel color valueprotected int getNumBins()
AbstractComputeColorHistogram
getNumBins
in class AbstractComputeColorHistogram