Class ImageStatistics

java.lang.Object
boofcv.alg.misc.ImageStatistics

@Generated("boofcv.alg.misc.GenerateImageStatistics") public class ImageStatistics extends Object
Computes statistical properties of pixels inside an image.

DO NOT MODIFY. This code was automatically generated by GenerateImageStatistics.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    histogram(GrayF32 input, float minValue, int[] histogram)
    Computes the histogram of intensity values for the image.
    static void
    histogram(GrayF64 input, double minValue, int[] histogram)
    Computes the histogram of intensity values for the image.
    static void
    histogram(GrayS16 input, int minValue, int[] histogram)
    Computes the histogram of intensity values for the image.
    static void
    histogram(GrayS32 input, int minValue, int[] histogram)
    Computes the histogram of intensity values for the image.
    static void
    histogram(GrayS64 input, long minValue, int[] histogram)
    Computes the histogram of intensity values for the image.
    static void
    histogram(GrayS8 input, int minValue, int[] histogram)
    Computes the histogram of intensity values for the image.
    static void
    histogram(GrayU16 input, int minValue, int[] histogram)
    Computes the histogram of intensity values for the image.
    static void
    histogram(GrayU8 input, int minValue, int[] histogram)
    Computes the histogram of intensity values for the image.
    static void
    histogramScaled(GrayF32 input, float minValue, float maxValue, int[] histogram)
    Computes the histogram of intensity values for the image while scaling the range to match the histogram.
    static void
    histogramScaled(GrayF64 input, double minValue, double maxValue, int[] histogram)
    Computes the histogram of intensity values for the image while scaling the range to match the histogram.
    static void
    histogramScaled(GrayS16 input, int minValue, int maxValue, int[] histogram)
    Computes the histogram of intensity values for the image while scaling the range to match the histogram.
    static void
    histogramScaled(GrayS32 input, int minValue, int maxValue, int[] histogram)
    Computes the histogram of intensity values for the image while scaling the range to match the histogram.
    static void
    histogramScaled(GrayS64 input, long minValue, long maxValue, int[] histogram)
    Computes the histogram of intensity values for the image while scaling the range to match the histogram.
    static void
    histogramScaled(GrayS8 input, int minValue, int maxValue, int[] histogram)
    Computes the histogram of intensity values for the image while scaling the range to match the histogram.
    static void
    histogramScaled(GrayU16 input, int minValue, int maxValue, int[] histogram)
    Computes the histogram of intensity values for the image while scaling the range to match the histogram.
    static void
    histogramScaled(GrayU8 input, int minValue, int maxValue, int[] histogram)
    Computes the histogram of intensity values for the image while scaling the range to match the histogram.
    static float
    max(GrayF32 input)
    Returns the maximum element value.
    static double
    max(GrayF64 input)
    Returns the maximum element value.
    static int
    max(GrayS16 input)
    Returns the maximum element value.
    static int
    max(GrayS32 input)
    Returns the maximum element value.
    static long
    max(GrayS64 input)
    Returns the maximum element value.
    static int
    max(GrayS8 input)
    Returns the maximum element value.
    static int
    max(GrayU16 input)
    Returns the maximum element value.
    static int
    max(GrayU8 input)
    Returns the maximum element value.
    static float
    Returns the maximum element value.
    static double
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static long
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static float
    maxAbs(GrayF32 input)
    Returns the maximum element value.
    static double
    maxAbs(GrayF64 input)
    Returns the maximum element value.
    static int
    maxAbs(GrayS16 input)
    Returns the maximum element value.
    static int
    maxAbs(GrayS32 input)
    Returns the maximum element value.
    static long
    maxAbs(GrayS64 input)
    Returns the maximum element value.
    static int
    maxAbs(GrayS8 input)
    Returns the maximum element value.
    static int
    maxAbs(GrayU16 input)
    Returns the maximum element value.
    static int
    maxAbs(GrayU8 input)
    Returns the maximum element value.
    static float
    Returns the maximum element value.
    static double
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static long
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static int
    Returns the maximum element value.
    static float
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    mean(GrayS8 img)
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    mean(GrayU8 img)
    Returns the mean pixel intensity value.
    static float
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Returns the mean pixel intensity value.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    meanDiffAbs(GrayS8 imgA, GrayS8 imgB)
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    meanDiffAbs(GrayU8 imgA, GrayU8 imgB)
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    Computes the mean of absolute value error between the two images.
    static double
    meanDiffSq(GrayF32 imgA, GrayF32 imgB)
    Computes the mean squared error (MSE) between the two images.
    static double
    meanDiffSq(GrayF64 imgA, GrayF64 imgB)
    Computes the mean squared error (MSE) between the two images.
    static double
    meanDiffSq(GrayS16 imgA, GrayS16 imgB)
    Computes the mean squared error (MSE) between the two images.
    static double
    meanDiffSq(GrayS32 imgA, GrayS32 imgB)
    Computes the mean squared error (MSE) between the two images.
    static double
    meanDiffSq(GrayS64 imgA, GrayS64 imgB)
    Computes the mean squared error (MSE) between the two images.
    static double
    meanDiffSq(GrayS8 imgA, GrayS8 imgB)
    Computes the mean squared error (MSE) between the two images.
    static double
    meanDiffSq(GrayU16 imgA, GrayU16 imgB)
    Computes the mean squared error (MSE) between the two images.
    static double
    meanDiffSq(GrayU8 imgA, GrayU8 imgB)
    Computes the mean squared error (MSE) between the two images.
    static double
    Computes the mean squared error (MSE) between the two images.
    static double
    Computes the mean squared error (MSE) between the two images.
    static double
    Computes the mean squared error (MSE) between the two images.
    static double
    Computes the mean squared error (MSE) between the two images.
    static double
    Computes the mean squared error (MSE) between the two images.
    static double
    Computes the mean squared error (MSE) between the two images.
    static double
    Computes the mean squared error (MSE) between the two images.
    static double
    Computes the mean squared error (MSE) between the two images.
    static float
    min(GrayF32 input)
    Returns the minimum element value.
    static double
    min(GrayF64 input)
    Returns the minimum element value.
    static int
    min(GrayS16 input)
    Returns the minimum element value.
    static int
    min(GrayS32 input)
    Returns the minimum element value.
    static long
    min(GrayS64 input)
    Returns the minimum element value.
    static int
    min(GrayS8 input)
    Returns the minimum element value.
    static int
    min(GrayU16 input)
    Returns the minimum element value.
    static int
    min(GrayU8 input)
    Returns the minimum element value.
    static float
    Returns the minimum element value.
    static double
    Returns the minimum element value.
    static int
    Returns the minimum element value.
    static int
    Returns the minimum element value.
    static long
    Returns the minimum element value.
    static int
    Returns the minimum element value.
    static int
    Returns the minimum element value.
    static int
    Returns the minimum element value.
    static float
    sum(GrayF32 input)
    Returns the sum of all the pixels in the image.
    static double
    sum(GrayF64 input)
    Returns the sum of all the pixels in the image.
    static int
    sum(GrayS16 input)
    Returns the sum of all the pixels in the image.
    static int
    sum(GrayS32 input)
    Returns the sum of all the pixels in the image.
    static long
    sum(GrayS64 input)
    Returns the sum of all the pixels in the image.
    static int
    sum(GrayS8 input)
    Returns the sum of all the pixels in the image.
    static int
    sum(GrayU16 input)
    Returns the sum of all the pixels in the image.
    static int
    sum(GrayU8 input)
    Returns the sum of all the pixels in the image.
    static float
    Returns the sum of all the pixels in the image.
    static double
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static long
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static float
    sumAbs(GrayF32 input)
    Returns the sum of all the pixels in the image.
    static double
    sumAbs(GrayF64 input)
    Returns the sum of all the pixels in the image.
    static int
    sumAbs(GrayS16 input)
    Returns the sum of all the pixels in the image.
    static int
    sumAbs(GrayS32 input)
    Returns the sum of all the pixels in the image.
    static long
    sumAbs(GrayS64 input)
    Returns the sum of all the pixels in the image.
    static int
    sumAbs(GrayS8 input)
    Returns the sum of all the pixels in the image.
    static int
    sumAbs(GrayU16 input)
    Returns the sum of all the pixels in the image.
    static int
    sumAbs(GrayU8 input)
    Returns the sum of all the pixels in the image.
    static float
    Returns the sum of all the pixels in the image.
    static double
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static long
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static int
    Returns the sum of all the pixels in the image.
    static float
    variance(GrayF32 img, float mean)
    Computes the variance of pixel intensity values inside the image.
    static double
    variance(GrayF64 img, double mean)
    Computes the variance of pixel intensity values inside the image.
    static double
    variance(GrayS16 img, double mean)
    Computes the variance of pixel intensity values inside the image.
    static double
    variance(GrayS32 img, double mean)
    Computes the variance of pixel intensity values inside the image.
    static double
    variance(GrayS64 img, double mean)
    Computes the variance of pixel intensity values inside the image.
    static double
    variance(GrayS8 img, double mean)
    Computes the variance of pixel intensity values inside the image.
    static double
    variance(GrayU16 img, double mean)
    Computes the variance of pixel intensity values inside the image.
    static double
    variance(GrayU8 img, double mean)
    Computes the variance of pixel intensity values inside the image.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImageStatistics

      public ImageStatistics()
  • Method Details

    • 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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(GrayU8 input)

      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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(InterleavedU8 input)

      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 minValue, int[] histogram)
      Computes the histogram of intensity values for the image.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (output) Storage for histogram. Number of elements must be equal to max value.
    • histogramScaled

      public static void histogramScaled(GrayU8 input, int minValue, int maxValue, int[] histogram)
      Computes the histogram of intensity values for the image while scaling the range to match the histogram.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(GrayS8 input)

      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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(InterleavedS8 input)

      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 value
      histogram - (output) Storage for histogram. Number of elements must be equal to max value.
    • histogramScaled

      public static void histogramScaled(GrayS8 input, int minValue, int maxValue, int[] histogram)
      Computes the histogram of intensity values for the image while scaling the range to match the histogram.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(GrayU16 input)

      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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(InterleavedU16 input)

      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 minValue, int[] histogram)
      Computes the histogram of intensity values for the image.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (output) Storage for histogram. Number of elements must be equal to max value.
    • histogramScaled

      public static void histogramScaled(GrayU16 input, int minValue, int maxValue, int[] histogram)
      Computes the histogram of intensity values for the image while scaling the range to match the histogram.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(GrayS16 input)

      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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(InterleavedS16 input)

      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 value
      histogram - (output) Storage for histogram. Number of elements must be equal to max value.
    • histogramScaled

      public static void histogramScaled(GrayS16 input, int minValue, int maxValue, int[] histogram)
      Computes the histogram of intensity values for the image while scaling the range to match the histogram.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(GrayS32 input)

      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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static int sumAbs(InterleavedS32 input)

      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 value
      histogram - (output) Storage for histogram. Number of elements must be equal to max value.
    • histogramScaled

      public static void histogramScaled(GrayS32 input, int minValue, int maxValue, int[] histogram)
      Computes the histogram of intensity values for the image while scaling the range to match the histogram.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static long sumAbs(GrayS64 input)

      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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static long sumAbs(InterleavedS64 input)

      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, long minValue, int[] histogram)
      Computes the histogram of intensity values for the image.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (output) Storage for histogram. Number of elements must be equal to max value.
    • histogramScaled

      public static void histogramScaled(GrayS64 input, long minValue, long maxValue, int[] histogram)
      Computes the histogram of intensity values for the image while scaling the range to match the histogram.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static float sumAbs(GrayF32 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • mean

      public static float 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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static float sumAbs(InterleavedF32 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • mean

      public static float mean(InterleavedF32 img)
      Returns the mean pixel intensity value.
      Parameters:
      img - Input image. Not modified.
      Returns:
      Mean pixel intensity value
    • variance

      public static float variance(GrayF32 img, float 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, float minValue, int[] histogram)
      Computes the histogram of intensity values for the image.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (output) Storage for histogram. Number of elements must be equal to max value.
    • histogramScaled

      public static void histogramScaled(GrayF32 input, float minValue, float maxValue, int[] histogram)
      Computes the histogram of intensity values for the image while scaling the range to match the histogram.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static double sumAbs(GrayF64 input)

      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 input)

      Returns the sum of all the pixels in the image.

      Parameters:
      img - Input image. Not modified.
    • sumAbs

      public static double sumAbs(InterleavedF64 input)

      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, double minValue, int[] histogram)
      Computes the histogram of intensity values for the image.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (output) Storage for histogram. Number of elements must be equal to max value.
    • histogramScaled

      public static void histogramScaled(GrayF64 input, double minValue, double maxValue, int[] histogram)
      Computes the histogram of intensity values for the image while scaling the range to match the histogram.
      Parameters:
      input - (input) Image.
      minValue - (input) Minimum possible intensity value
      histogram - (output) Storage for histogram. Number of elements must be equal to max value.