public class Histogram
extends java.lang.Object
Modifier and Type | Field and 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 |
Constructor and Description |
---|
Histogram() |
Histogram(int[] pixels,
int w,
int h,
int offset,
int stride) |
Modifier and Type | Method and 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() |
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int GRAY
protected int[][] histogram
protected int numSamples
protected int[] minValue
protected int[] maxValue
protected int[] minFrequency
protected int[] maxFrequency
protected float[] mean
protected boolean isGray
public Histogram()
public Histogram(int[] pixels, int w, int h, int offset, int stride)
public boolean isGray()
public int getNumSamples()
public int getFrequency(int value)
public int getFrequency(int channel, int value)
public int getMinFrequency()
public int getMinFrequency(int channel)
public int getMaxFrequency()
public int getMaxFrequency(int channel)
public int getMinValue()
public int getMinValue(int channel)
public int getMaxValue()
public int getMaxValue(int channel)
public float getMeanValue()
public float getMeanValue(int channel)