public class GImageStatistics
extends java.lang.Object
ImageStatistics. Type checking is performed at runtime instead of at compile type.| Constructor and Description |
|---|
GImageStatistics() |
| Modifier and Type | Method and Description |
|---|---|
static void |
histogram(ImageSingleBand input,
int minValue,
int[] histogram)
Computes the histogram of intensity values for the image.
|
static double |
max(ImageSingleBand input)
Returns the maximum pixel value.
|
static double |
maxAbs(ImageSingleBand input)
Returns the absolute value of the element with the largest absolute value.
|
static <T extends ImageSingleBand> |
mean(T input)
Returns the mean pixel intensity value.
|
static <T extends ImageSingleBand> |
meanDiffAbs(T inputA,
T inputB)
Computes the mean of the absolute value of the difference between the two images.
|
static <T extends ImageSingleBand> |
meanDiffSq(T inputA,
T inputB)
Computes the mean of the difference squared between the two images.
|
static double |
min(ImageSingleBand input)
Returns the minimum pixel value.
|
static <T extends ImageSingleBand> |
sum(T input)
Returns the sum of all the pixels in the image.
|
static <T extends ImageSingleBand> |
variance(T input,
double mean)
Computes the variance of pixel intensity values inside the image.
|
public static double maxAbs(ImageSingleBand input)
input - Input image. Not modified.public static double max(ImageSingleBand input)
input - Input image. Not modified.public static double min(ImageSingleBand input)
input - Input image. Not modified.public static <T extends ImageSingleBand> double sum(T input)
Returns the sum of all the pixels in the image.
input - Input image. Not modified.public static <T extends ImageSingleBand> double mean(T input)
input - Input image. Not modified.public static <T extends ImageSingleBand> double variance(T input, double mean)
input - Input image. Not modified.mean - Mean pixel intensity value.public static <T extends ImageSingleBand> double meanDiffSq(T inputA, T inputB)
inputA - Input image. Not modified.inputB - Input image. Not modified.public static <T extends ImageSingleBand> double meanDiffAbs(T inputA, T inputB)
inputA - Input image. Not modified.inputB - Input image. Not modified.public static void histogram(ImageSingleBand input, int minValue, int[] histogram)
input - (input) Image.minValue - (input) Minimum possible intensity value Ignored for unsigned images.histogram - (output) Storage for histogram. Number of elements must be equal to max value.