Class ImageStatistics


  • public class ImageStatistics
    extends java.lang.Object
    Gathers basic statistics about an image, including the minimum, maximum, and mean of each channel.
    Since:
    3.0
    Author:
    Chris Jennings
    • Field Detail

      • alphaMin

        public int alphaMin
      • alphaMax

        public int alphaMax
      • alphaMean

        public int alphaMean
      • redMin

        public int redMin
      • redMax

        public int redMax
      • redMean

        public int redMean
      • greenMin

        public int greenMin
      • greenMax

        public int greenMax
      • greenMean

        public int greenMean
      • blueMin

        public int blueMin
      • blueMax

        public int blueMax
      • blueMean

        public int blueMean
      • greyMin

        public int greyMin
      • greyMax

        public int greyMax
      • greyMean

        public int greyMean
    • Constructor Detail

      • ImageStatistics

        public ImageStatistics​(java.awt.image.BufferedImage bi)
        Creates a new instance and fills in the statistic fields from the specified image.
        Parameters:
        bi - the image to process
    • Method Detail

      • analyze

        public void analyze​(java.awt.image.BufferedImage bi)
        Analyzes the image, filling in the statistic fields with the results.
        Parameters:
        bi - the image to process