public class Histogram
extends java.lang.Object
Constructor and Description |
---|
Histogram() |
Modifier and Type | Method and Description |
---|---|
static Dataset |
grayScale(Dataset input)
Converts a Dataset into a gray scale representation by normalizing between 0 and 255.
|
static Dataset |
grayScale(Dataset input,
int max_intensity)
Converts a Dataset into a gray scale representation by normalizing between 0 and a maximum value.
|
static int[] |
hist1d(Dataset input)
Calculates the histogram for a given Dataset.
|
static int[] |
hist1d(Dataset input,
boolean normalize)
Calculates the histogram for a given Dataset.
|
static int[] |
hist1d(Dataset input,
boolean normalize,
int max_intensity)
Calculates the one-dimensional histogram for a given Dataset.
|
public static int[] hist1d(Dataset input, boolean normalize, int max_intensity)
input
- Dataset to examinenormalize
- if true, input is normalized prior to calculating the histogrammax_intensity
- maximum intensity to usepublic static Dataset grayScale(Dataset input, int max_intensity)
input
- input to normalizemax_intensity
- maximum value to usepublic static Dataset grayScale(Dataset input)
input
- input to normalizepublic static int[] hist1d(Dataset input)
input
- Dataset to examinepublic static int[] hist1d(Dataset input, boolean normalize)
input
- Dataset to examinenormalize
- if true, normalize the data between 0-255 prior to calculating the histogram