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(ImageGray input,
int minValue,
int[] histogram)
Computes the histogram of intensity values for the image.
|
static double |
max(ImageBase input)
Returns the maximum pixel value across all bands.
|
static double |
maxAbs(ImageBase input)
Returns the absolute value of the element with the largest absolute value, across all bands
|
static double |
mean(ImageBase input)
Returns the mean pixel intensity value.
|
static <T extends ImageBase> |
meanDiffAbs(T inputA,
T inputB)
Computes the mean of the absolute value of the difference between the two images across all bands
|
static <T extends ImageBase> |
meanDiffSq(T inputA,
T inputB)
Computes the mean of the difference squared between the two images.
|
static double |
min(ImageBase input)
Returns the minimum pixel value across all bands
|
static double |
sum(ImageBase input)
Returns the sum of all the pixels in the image across all bands.
|
static <T extends ImageGray> |
variance(T input,
double mean)
Computes the variance of pixel intensity values inside the image.
|
public static double maxAbs(ImageBase input)
input - Input image. Not modified.public static double max(ImageBase input)
input - Input image. Not modified.public static double min(ImageBase input)
input - Input image. Not modified.public static double sum(ImageBase input)
Returns the sum of all the pixels in the image across all bands.
input - Input image. Not modified.public static double mean(ImageBase input)
input - Input image. Not modified.public static <T extends ImageGray> double variance(T input, double mean)
input - Input image. Not modified.mean - Mean pixel intensity value.public static <T extends ImageBase> double meanDiffSq(T inputA, T inputB)
inputA - Input image. Not modified.inputB - Input image. Not modified.public static <T extends ImageBase> double meanDiffAbs(T inputA, T inputB)
inputA - Input image. Not modified.inputB - Input image. Not modified.public static void histogram(ImageGray 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.