Package com.jhlabs.image
Class Histogram
- java.lang.Object
-
- com.jhlabs.image.Histogram
-
public class Histogram extends java.lang.Object
An image histogram.
-
-
Field Summary
Fields Modifier and Type Field Description static int
BLUE
static int
GRAY
static int
GREEN
protected int[][]
histogram
protected boolean
isGray
protected int[]
maxFrequency
protected int[]
maxValue
protected float[]
mean
protected int[]
minFrequency
protected int[]
minValue
protected int
numSamples
static int
RED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFrequency(int value)
int
getFrequency(int channel, int value)
int
getMaxFrequency()
int
getMaxFrequency(int channel)
int
getMaxValue()
int
getMaxValue(int channel)
float
getMeanValue()
float
getMeanValue(int channel)
int
getMinFrequency()
int
getMinFrequency(int channel)
int
getMinValue()
int
getMinValue(int channel)
int
getNumSamples()
boolean
isGray()
-
-
-
Field Detail
-
RED
public static final int RED
- See Also:
- Constant Field Values
-
GREEN
public static final int GREEN
- See Also:
- Constant Field Values
-
BLUE
public static final int BLUE
- See Also:
- Constant Field Values
-
GRAY
public static final int GRAY
- See Also:
- Constant Field Values
-
histogram
protected int[][] histogram
-
numSamples
protected int numSamples
-
minValue
protected int[] minValue
-
maxValue
protected int[] maxValue
-
minFrequency
protected int[] minFrequency
-
maxFrequency
protected int[] maxFrequency
-
mean
protected float[] mean
-
isGray
protected boolean isGray
-
-
Method Detail
-
isGray
public boolean isGray()
-
getNumSamples
public int getNumSamples()
-
getFrequency
public int getFrequency(int value)
-
getFrequency
public int getFrequency(int channel, int value)
-
getMinFrequency
public int getMinFrequency()
-
getMinFrequency
public int getMinFrequency(int channel)
-
getMaxFrequency
public int getMaxFrequency()
-
getMaxFrequency
public int getMaxFrequency(int channel)
-
getMinValue
public int getMinValue()
-
getMinValue
public int getMinValue(int channel)
-
getMaxValue
public int getMaxValue()
-
getMaxValue
public int getMaxValue(int channel)
-
getMeanValue
public float getMeanValue()
-
getMeanValue
public float getMeanValue(int channel)
-
-