public class Histogram
extends java.lang.Object
| Constructor and Description |
|---|
Histogram(int[] values)
Initializes a new instance of the Histogram class.
|
Histogram(int[] values,
int bins)
Initializes a new instance of the Histogram class.
|
| Modifier and Type | Method and Description |
|---|---|
static double[] |
CDF(Histogram hist) |
static double[] |
CDF(int[] values) |
int |
getBins()
Get number of bins.
|
double |
getEntropy()
Get entropy value.
|
int |
getMax()
Get maximum value.
|
double |
getMean()
Get mean value.
|
int |
getMedian()
Get median value.
|
int |
getMin()
Get minimum value.
|
int |
getMode()
Get mode value.
|
double |
getStdDev()
Get standart deviation value.
|
long |
getTotal()
Get the sum of pixels.
|
int[] |
getValues()
Get values of the histogram.
|
static int[] |
MatchHistograms(Histogram histA,
Histogram histB) |
static int[] |
MatchHistograms(int[] histA,
int[] histB) |
double[] |
Normalize()
Normalize histogram.
|
static double[] |
Normalize(int[] values)
Normalize histogram.
|
public Histogram(int[] values)
values - Values.public Histogram(int[] values,
int bins)
values - Values.bins - Number of bins.public static int[] MatchHistograms(int[] histA,
int[] histB)
public static double[] CDF(int[] values)
public static double[] CDF(Histogram hist)
public static double[] Normalize(int[] values)
values - Values.public int[] getValues()
public double getMean()
public double getStdDev()
public double getEntropy()
public int getMedian()
public int getMode()
public int getMin()
public int getMax()
public long getTotal()
public int getBins()
public double[] Normalize()