Class GImageStatistics


  • public class GImageStatistics
    extends java.lang.Object
    Generalized version of ImageStatistics. Type checking is performed at runtime instead of at compile type.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void histogram​(boofcv.struct.image.ImageGray input, double minValue, int[] histogram)
      Computes the histogram of intensity values for the image.
      static void histogramScaled​(boofcv.struct.image.ImageGray input, double minValue, double maxValue, int[] histogram)
      Computes the histogram of intensity values for the image.
      static double max​(boofcv.struct.image.ImageBase input)
      Returns the maximum pixel value across all bands.
      static double maxAbs​(boofcv.struct.image.ImageBase input)
      Returns the absolute value of the element with the largest absolute value, across all bands
      static double mean​(boofcv.struct.image.ImageBase input)
      Returns the mean pixel intensity value.
      static <T extends boofcv.struct.image.ImageBase<T>>
      double
      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 boofcv.struct.image.ImageBase<T>>
      double
      meanDiffSq​(T inputA, T inputB)
      Computes the mean of the difference squared between the two images.
      static double min​(boofcv.struct.image.ImageBase input)
      Returns the minimum pixel value across all bands
      static double sum​(boofcv.struct.image.ImageBase input)
      Returns the sum of all the pixels in the image across all bands.
      static <T extends boofcv.struct.image.ImageGray<T>>
      double
      variance​(T input, 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 Detail

      • GImageStatistics

        public GImageStatistics()
    • Method Detail

      • maxAbs

        public static double maxAbs​(boofcv.struct.image.ImageBase input)
        Returns the absolute value of the element with the largest absolute value, across all bands
        Parameters:
        input - Input image. Not modified.
        Returns:
        Largest pixel absolute value.
      • max

        public static double max​(boofcv.struct.image.ImageBase input)
        Returns the maximum pixel value across all bands.
        Parameters:
        input - Input image. Not modified.
        Returns:
        Maximum pixel value.
      • min

        public static double min​(boofcv.struct.image.ImageBase input)
        Returns the minimum pixel value across all bands
        Parameters:
        input - Input image. Not modified.
        Returns:
        Minimum pixel value.
      • sum

        public static double sum​(boofcv.struct.image.ImageBase input)

        Returns the sum of all the pixels in the image across all bands.

        Parameters:
        input - Input image. Not modified.
        Returns:
        Sum of pixel intensity values
      • mean

        public static double mean​(boofcv.struct.image.ImageBase input)
        Returns the mean pixel intensity value.
        Parameters:
        input - Input image. Not modified.
        Returns:
        Mean pixel value
      • variance

        public static <T extends boofcv.struct.image.ImageGray<T>> double variance​(T input,
                                                                                   double mean)
        Computes the variance of pixel intensity values inside the image.
        Parameters:
        input - Input image. Not modified.
        mean - Mean pixel intensity value.
        Returns:
        Pixel variance
      • meanDiffSq

        public static <T extends boofcv.struct.image.ImageBase<T>> double meanDiffSq​(T inputA,
                                                                                     T inputB)
        Computes the mean of the difference squared between the two images.
        Parameters:
        inputA - Input image. Not modified.
        inputB - Input image. Not modified.
        Returns:
        Mean difference squared
      • meanDiffAbs

        public static <T extends boofcv.struct.image.ImageBase<T>> double meanDiffAbs​(T inputA,
                                                                                      T inputB)
        Computes the mean of the absolute value of the difference between the two images across all bands
        Parameters:
        inputA - Input image. Not modified.
        inputB - Input image. Not modified.
        Returns:
        Mean absolute difference
      • histogram

        public static void histogram​(boofcv.struct.image.ImageGray input,
                                     double minValue,
                                     int[] histogram)
        Computes the histogram of intensity values for the image. For floating point images it is rounded to the nearest integer using "(int)value".
        Parameters:
        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.
      • histogramScaled

        public static void histogramScaled​(boofcv.struct.image.ImageGray input,
                                           double minValue,
                                           double maxValue,
                                           int[] histogram)
        Computes the histogram of intensity values for the image. For floating point images it is rounded to the nearest integer using "(int)value".
        Parameters:
        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.