Class ImageStatistics
- java.lang.Object
-
- boofcv.alg.misc.ImageStatistics
-
@Generated(value="boofcv.alg.misc.GenerateImageStatistics") public class ImageStatistics extends java.lang.ObjectComputes statistical properties of pixels inside an image.DO NOT MODIFY: Generated by boofcv.alg.misc.GenerateImageStatistics
.
-
-
Constructor Summary
Constructors Constructor and Description ImageStatistics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidhistogram(GrayF32 input, int minValue, int[] histogram)Computes the histogram of intensity values for the image.static voidhistogram(GrayF64 input, int minValue, int[] histogram)Computes the histogram of intensity values for the image.static voidhistogram(GrayS16 input, int minValue, int[] histogram)Computes the histogram of intensity values for the image.static voidhistogram(GrayS32 input, int minValue, int[] histogram)Computes the histogram of intensity values for the image.static voidhistogram(GrayS64 input, int minValue, int[] histogram)Computes the histogram of intensity values for the image.static voidhistogram(GrayS8 input, int minValue, int[] histogram)Computes the histogram of intensity values for the image.static voidhistogram(GrayU16 input, int[] histogram)Computes the histogram of intensity values for the image.static voidhistogram(GrayU8 input, int[] histogram)Computes the histogram of intensity values for the image.static floatmax(GrayF32 input)Returns the maximum element value.static doublemax(GrayF64 input)Returns the maximum element value.static intmax(GrayS16 input)Returns the maximum element value.static intmax(GrayS32 input)Returns the maximum element value.static longmax(GrayS64 input)Returns the maximum element value.static intmax(GrayS8 input)Returns the maximum element value.static intmax(GrayU16 input)Returns the maximum element value.static intmax(GrayU8 input)Returns the maximum element value.static floatmax(InterleavedF32 input)Returns the maximum element value.static doublemax(InterleavedF64 input)Returns the maximum element value.static intmax(InterleavedS16 input)Returns the maximum element value.static intmax(InterleavedS32 input)Returns the maximum element value.static longmax(InterleavedS64 input)Returns the maximum element value.static intmax(InterleavedS8 input)Returns the maximum element value.static intmax(InterleavedU16 input)Returns the maximum element value.static intmax(InterleavedU8 input)Returns the maximum element value.static floatmaxAbs(GrayF32 input)Returns the maximum element value.static doublemaxAbs(GrayF64 input)Returns the maximum element value.static intmaxAbs(GrayS16 input)Returns the maximum element value.static intmaxAbs(GrayS32 input)Returns the maximum element value.static longmaxAbs(GrayS64 input)Returns the maximum element value.static intmaxAbs(GrayS8 input)Returns the maximum element value.static intmaxAbs(GrayU16 input)Returns the maximum element value.static intmaxAbs(GrayU8 input)Returns the maximum element value.static floatmaxAbs(InterleavedF32 input)Returns the maximum element value.static doublemaxAbs(InterleavedF64 input)Returns the maximum element value.static intmaxAbs(InterleavedS16 input)Returns the maximum element value.static intmaxAbs(InterleavedS32 input)Returns the maximum element value.static longmaxAbs(InterleavedS64 input)Returns the maximum element value.static intmaxAbs(InterleavedS8 input)Returns the maximum element value.static intmaxAbs(InterleavedU16 input)Returns the maximum element value.static intmaxAbs(InterleavedU8 input)Returns the maximum element value.static doublemean(GrayF32 img)Returns the mean pixel intensity value.static doublemean(GrayF64 img)Returns the mean pixel intensity value.static doublemean(GrayS16 img)Returns the mean pixel intensity value.static doublemean(GrayS32 img)Returns the mean pixel intensity value.static doublemean(GrayS64 img)Returns the mean pixel intensity value.static doublemean(GrayS8 img)Returns the mean pixel intensity value.static doublemean(GrayU16 img)Returns the mean pixel intensity value.static doublemean(GrayU8 img)Returns the mean pixel intensity value.static doublemean(InterleavedF32 img)Returns the mean pixel intensity value.static doublemean(InterleavedF64 img)Returns the mean pixel intensity value.static doublemean(InterleavedS16 img)Returns the mean pixel intensity value.static doublemean(InterleavedS32 img)Returns the mean pixel intensity value.static doublemean(InterleavedS64 img)Returns the mean pixel intensity value.static doublemean(InterleavedS8 img)Returns the mean pixel intensity value.static doublemean(InterleavedU16 img)Returns the mean pixel intensity value.static doublemean(InterleavedU8 img)Returns the mean pixel intensity value.static doublemeanDiffAbs(GrayF32 imgA, GrayF32 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(GrayF64 imgA, GrayF64 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(GrayS16 imgA, GrayS16 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(GrayS32 imgA, GrayS32 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(GrayS64 imgA, GrayS64 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(GrayS8 imgA, GrayS8 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(GrayU16 imgA, GrayU16 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(GrayU8 imgA, GrayU8 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(InterleavedF32 imgA, InterleavedF32 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(InterleavedF64 imgA, InterleavedF64 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(InterleavedS16 imgA, InterleavedS16 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(InterleavedS32 imgA, InterleavedS32 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(InterleavedS64 imgA, InterleavedS64 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(InterleavedS8 imgA, InterleavedS8 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(InterleavedU16 imgA, InterleavedU16 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffAbs(InterleavedU8 imgA, InterleavedU8 imgB)Computes the mean of absolute value error between the two images.static doublemeanDiffSq(GrayF32 imgA, GrayF32 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(GrayF64 imgA, GrayF64 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(GrayS16 imgA, GrayS16 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(GrayS32 imgA, GrayS32 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(GrayS64 imgA, GrayS64 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(GrayS8 imgA, GrayS8 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(GrayU16 imgA, GrayU16 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(GrayU8 imgA, GrayU8 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(InterleavedF32 imgA, InterleavedF32 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(InterleavedF64 imgA, InterleavedF64 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(InterleavedS16 imgA, InterleavedS16 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(InterleavedS32 imgA, InterleavedS32 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(InterleavedS64 imgA, InterleavedS64 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(InterleavedS8 imgA, InterleavedS8 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(InterleavedU16 imgA, InterleavedU16 imgB)Computes the mean squared error (MSE) between the two images.static doublemeanDiffSq(InterleavedU8 imgA, InterleavedU8 imgB)Computes the mean squared error (MSE) between the two images.static floatmin(GrayF32 input)Returns the minimum element value.static doublemin(GrayF64 input)Returns the minimum element value.static intmin(GrayS16 input)Returns the minimum element value.static intmin(GrayS32 input)Returns the minimum element value.static longmin(GrayS64 input)Returns the minimum element value.static intmin(GrayS8 input)Returns the minimum element value.static intmin(GrayU16 input)Returns the minimum element value.static intmin(GrayU8 input)Returns the minimum element value.static floatmin(InterleavedF32 input)Returns the minimum element value.static doublemin(InterleavedF64 input)Returns the minimum element value.static intmin(InterleavedS16 input)Returns the minimum element value.static intmin(InterleavedS32 input)Returns the minimum element value.static longmin(InterleavedS64 input)Returns the minimum element value.static intmin(InterleavedS8 input)Returns the minimum element value.static intmin(InterleavedU16 input)Returns the minimum element value.static intmin(InterleavedU8 input)Returns the minimum element value.static floatsum(GrayF32 img)Returns the sum of all the pixels in the image.static doublesum(GrayF64 img)Returns the sum of all the pixels in the image.static intsum(GrayS16 img)Returns the sum of all the pixels in the image.static intsum(GrayS32 img)Returns the sum of all the pixels in the image.static longsum(GrayS64 img)Returns the sum of all the pixels in the image.static intsum(GrayS8 img)Returns the sum of all the pixels in the image.static intsum(GrayU16 img)Returns the sum of all the pixels in the image.static intsum(GrayU8 img)Returns the sum of all the pixels in the image.static floatsum(InterleavedF32 img)Returns the sum of all the pixels in the image.static doublesum(InterleavedF64 img)Returns the sum of all the pixels in the image.static intsum(InterleavedS16 img)Returns the sum of all the pixels in the image.static intsum(InterleavedS32 img)Returns the sum of all the pixels in the image.static longsum(InterleavedS64 img)Returns the sum of all the pixels in the image.static intsum(InterleavedS8 img)Returns the sum of all the pixels in the image.static intsum(InterleavedU16 img)Returns the sum of all the pixels in the image.static intsum(InterleavedU8 img)Returns the sum of all the pixels in the image.static doublevariance(GrayF32 img, double mean)Computes the variance of pixel intensity values inside the image.static doublevariance(GrayF64 img, double mean)Computes the variance of pixel intensity values inside the image.static doublevariance(GrayS16 img, double mean)Computes the variance of pixel intensity values inside the image.static doublevariance(GrayS32 img, double mean)Computes the variance of pixel intensity values inside the image.static doublevariance(GrayS64 img, double mean)Computes the variance of pixel intensity values inside the image.static doublevariance(GrayS8 img, double mean)Computes the variance of pixel intensity values inside the image.static doublevariance(GrayU16 img, double mean)Computes the variance of pixel intensity values inside the image.static doublevariance(GrayU8 img, double mean)Computes the variance of pixel intensity values inside the image.
-
-
-
Method Detail
-
min
public static int min(GrayU8 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
min
public static int min(InterleavedU8 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
max
public static int max(GrayU8 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
max
public static int max(InterleavedU8 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(GrayU8 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(InterleavedU8 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
meanDiffSq
public static double meanDiffSq(GrayU8 imgA, GrayU8 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffSq
public static double meanDiffSq(InterleavedU8 imgA, InterleavedU8 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(GrayU8 imgA, GrayU8 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(InterleavedU8 imgA, InterleavedU8 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
sum
public static int sum(GrayU8 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(GrayU8 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
sum
public static int sum(InterleavedU8 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(InterleavedU8 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
variance
public static double variance(GrayU8 img, double mean)
Computes the variance of pixel intensity values inside the image.- Parameters:
img- Input image. Not modified.mean- Mean pixel intensity value.- Returns:
- Pixel variance
-
histogram
public static void histogram(GrayU8 input, int[] histogram)
Computes the histogram of intensity values for the image.- Parameters:
input- (input) Image.histogram- (output) Storage for histogram. Number of elements must be equal to max value.
-
min
public static int min(GrayS8 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
min
public static int min(InterleavedS8 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
max
public static int max(GrayS8 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
max
public static int max(InterleavedS8 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(GrayS8 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(InterleavedS8 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
meanDiffSq
public static double meanDiffSq(GrayS8 imgA, GrayS8 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffSq
public static double meanDiffSq(InterleavedS8 imgA, InterleavedS8 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(GrayS8 imgA, GrayS8 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(InterleavedS8 imgA, InterleavedS8 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
sum
public static int sum(GrayS8 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(GrayS8 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
sum
public static int sum(InterleavedS8 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(InterleavedS8 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
variance
public static double variance(GrayS8 img, double mean)
Computes the variance of pixel intensity values inside the image.- Parameters:
img- Input image. Not modified.mean- Mean pixel intensity value.- Returns:
- Pixel variance
-
histogram
public static void histogram(GrayS8 input, int minValue, int[] histogram)
Computes the histogram of intensity values for the image.- Parameters:
input- (input) Image.minValue- (input) Minimum possible intensity valuehistogram- (output) Storage for histogram. Number of elements must be equal to max value.
-
min
public static int min(GrayU16 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
min
public static int min(InterleavedU16 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
max
public static int max(GrayU16 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
max
public static int max(InterleavedU16 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(GrayU16 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(InterleavedU16 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
meanDiffSq
public static double meanDiffSq(GrayU16 imgA, GrayU16 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffSq
public static double meanDiffSq(InterleavedU16 imgA, InterleavedU16 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(GrayU16 imgA, GrayU16 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(InterleavedU16 imgA, InterleavedU16 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
sum
public static int sum(GrayU16 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(GrayU16 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
sum
public static int sum(InterleavedU16 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(InterleavedU16 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
variance
public static double variance(GrayU16 img, double mean)
Computes the variance of pixel intensity values inside the image.- Parameters:
img- Input image. Not modified.mean- Mean pixel intensity value.- Returns:
- Pixel variance
-
histogram
public static void histogram(GrayU16 input, int[] histogram)
Computes the histogram of intensity values for the image.- Parameters:
input- (input) Image.histogram- (output) Storage for histogram. Number of elements must be equal to max value.
-
min
public static int min(GrayS16 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
min
public static int min(InterleavedS16 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
max
public static int max(GrayS16 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
max
public static int max(InterleavedS16 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(GrayS16 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(InterleavedS16 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
meanDiffSq
public static double meanDiffSq(GrayS16 imgA, GrayS16 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffSq
public static double meanDiffSq(InterleavedS16 imgA, InterleavedS16 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(GrayS16 imgA, GrayS16 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(InterleavedS16 imgA, InterleavedS16 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
sum
public static int sum(GrayS16 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(GrayS16 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
sum
public static int sum(InterleavedS16 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(InterleavedS16 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
variance
public static double variance(GrayS16 img, double mean)
Computes the variance of pixel intensity values inside the image.- Parameters:
img- Input image. Not modified.mean- Mean pixel intensity value.- Returns:
- Pixel variance
-
histogram
public static void histogram(GrayS16 input, int minValue, int[] histogram)
Computes the histogram of intensity values for the image.- Parameters:
input- (input) Image.minValue- (input) Minimum possible intensity valuehistogram- (output) Storage for histogram. Number of elements must be equal to max value.
-
min
public static int min(GrayS32 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
min
public static int min(InterleavedS32 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
max
public static int max(GrayS32 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
max
public static int max(InterleavedS32 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(GrayS32 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static int maxAbs(InterleavedS32 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
meanDiffSq
public static double meanDiffSq(GrayS32 imgA, GrayS32 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffSq
public static double meanDiffSq(InterleavedS32 imgA, InterleavedS32 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(GrayS32 imgA, GrayS32 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(InterleavedS32 imgA, InterleavedS32 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
sum
public static int sum(GrayS32 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(GrayS32 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
sum
public static int sum(InterleavedS32 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(InterleavedS32 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
variance
public static double variance(GrayS32 img, double mean)
Computes the variance of pixel intensity values inside the image.- Parameters:
img- Input image. Not modified.mean- Mean pixel intensity value.- Returns:
- Pixel variance
-
histogram
public static void histogram(GrayS32 input, int minValue, int[] histogram)
Computes the histogram of intensity values for the image.- Parameters:
input- (input) Image.minValue- (input) Minimum possible intensity valuehistogram- (output) Storage for histogram. Number of elements must be equal to max value.
-
min
public static long min(GrayS64 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
min
public static long min(InterleavedS64 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
max
public static long max(GrayS64 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
max
public static long max(InterleavedS64 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static long maxAbs(GrayS64 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static long maxAbs(InterleavedS64 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
meanDiffSq
public static double meanDiffSq(GrayS64 imgA, GrayS64 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffSq
public static double meanDiffSq(InterleavedS64 imgA, InterleavedS64 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(GrayS64 imgA, GrayS64 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(InterleavedS64 imgA, InterleavedS64 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
sum
public static long sum(GrayS64 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(GrayS64 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
sum
public static long sum(InterleavedS64 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(InterleavedS64 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
variance
public static double variance(GrayS64 img, double mean)
Computes the variance of pixel intensity values inside the image.- Parameters:
img- Input image. Not modified.mean- Mean pixel intensity value.- Returns:
- Pixel variance
-
histogram
public static void histogram(GrayS64 input, int minValue, int[] histogram)
Computes the histogram of intensity values for the image.- Parameters:
input- (input) Image.minValue- (input) Minimum possible intensity valuehistogram- (output) Storage for histogram. Number of elements must be equal to max value.
-
min
public static float min(GrayF32 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
min
public static float min(InterleavedF32 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
max
public static float max(GrayF32 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
max
public static float max(InterleavedF32 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static float maxAbs(GrayF32 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static float maxAbs(InterleavedF32 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
meanDiffSq
public static double meanDiffSq(GrayF32 imgA, GrayF32 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffSq
public static double meanDiffSq(InterleavedF32 imgA, InterleavedF32 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(GrayF32 imgA, GrayF32 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(InterleavedF32 imgA, InterleavedF32 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
sum
public static float sum(GrayF32 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(GrayF32 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
sum
public static float sum(InterleavedF32 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(InterleavedF32 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
variance
public static double variance(GrayF32 img, double mean)
Computes the variance of pixel intensity values inside the image.- Parameters:
img- Input image. Not modified.mean- Mean pixel intensity value.- Returns:
- Pixel variance
-
histogram
public static void histogram(GrayF32 input, int minValue, int[] histogram)
Computes the histogram of intensity values for the image.- Parameters:
input- (input) Image.minValue- (input) Minimum possible intensity valuehistogram- (output) Storage for histogram. Number of elements must be equal to max value.
-
min
public static double min(GrayF64 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
min
public static double min(InterleavedF64 input)
Returns the minimum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Minimum pixel value.
-
max
public static double max(GrayF64 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
max
public static double max(InterleavedF64 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static double maxAbs(GrayF64 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
maxAbs
public static double maxAbs(InterleavedF64 input)
Returns the maximum element value.- Parameters:
input- Input image. Not modified.- Returns:
- Maximum pixel value.
-
meanDiffSq
public static double meanDiffSq(GrayF64 imgA, GrayF64 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffSq
public static double meanDiffSq(InterleavedF64 imgA, InterleavedF64 imgB)
Computes the mean squared error (MSE) between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(GrayF64 imgA, GrayF64 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
meanDiffAbs
public static double meanDiffAbs(InterleavedF64 imgA, InterleavedF64 imgB)
Computes the mean of absolute value error between the two images.
- Parameters:
imgA- first image. Not modified.imgB- second image. Not modified.- Returns:
- error between the two images.
-
sum
public static double sum(GrayF64 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(GrayF64 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
sum
public static double sum(InterleavedF64 img)
Returns the sum of all the pixels in the image.
- Parameters:
img- Input image. Not modified.
-
mean
public static double mean(InterleavedF64 img)
Returns the mean pixel intensity value.- Parameters:
img- Input image. Not modified.- Returns:
- Mean pixel intensity value
-
variance
public static double variance(GrayF64 img, double mean)
Computes the variance of pixel intensity values inside the image.- Parameters:
img- Input image. Not modified.mean- Mean pixel intensity value.- Returns:
- Pixel variance
-
histogram
public static void histogram(GrayF64 input, int minValue, int[] histogram)
Computes the histogram of intensity values for the image.- Parameters:
input- (input) Image.minValue- (input) Minimum possible intensity valuehistogram- (output) Storage for histogram. Number of elements must be equal to max value.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG