Package ca.cgjennings.graphics
Class ImageStatistics
- java.lang.Object
-
- ca.cgjennings.graphics.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
-
-
Constructor Summary
Constructors Constructor Description ImageStatistics()
Creates a new instance.ImageStatistics(java.awt.image.BufferedImage bi)
Creates a new instance and fills in the statistic fields from the specified image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
analyze(java.awt.image.BufferedImage bi)
Analyzes the image, filling in the statistic fields with the results.
-
-
-
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()
Creates a new instance. Callanalyze(java.awt.image.BufferedImage)
to fill in the statistic fields.
-
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
-
-