public class ComputeHSBColorHistogram extends AbstractComputeColorHistogram
Modifier and Type | Class and Description |
---|---|
static class |
ComputeHSBColorHistogram.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 |
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 and Description |
---|
ComputeHSBColorHistogram(int quanth,
int quants,
int quantb)
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 quanth
int quants
int quantb
public ComputeHSBColorHistogram(int quanth, int quants, int quantb)
quanth
- Hue binsquants
- Saturation binsquantb
- Brightness binsprotected int getBinForColor(int rgb)
AbstractComputeColorHistogram
getBinForColor
in class AbstractComputeColorHistogram
rgb
- Pixel color valueprotected int getNumBins()
AbstractComputeColorHistogram
getNumBins
in class AbstractComputeColorHistogram