GiciAnalysis
Class ImageStatistical

java.lang.Object
  extended by GiciAnalysis.ImageStatistical

public class ImageStatistical
extends java.lang.Object

This class receives an image and calculates some statistical information about the image.

Version:
1.0
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
(package private)  float[] average
          Average of each component.
(package private)  float[] centerRange
          Center of range for each image component.
(package private)  int[][] countedValues
          Array where are stored the how many times is appeared all values in Byte image.
(package private)  float[][] minMax
          Array where min (minMax[component][0]) and max (minMax[component][1]) values of each component will be stored.
(package private)  float totalAverage
          Average of whole image.
(package private)  float totalCenterRange
          Center of range of whole image.
(package private)  float[] totalMinMax
          Global min (minMax[0]) and max (minMax[1]) values of the image.
 
Constructor Summary
ImageStatistical(float[][][] imageSamples)
          Constructor that does all the operations to calculate min and max, average and center range of the image.
ImageStatistical(int[][][] imageSamples)
          Constructor that does all the operations to calculate min and max, average and center range of the image.
 
Method Summary
 float[] getAverage()
           
 float[] getCenterRange()
           
 int[][] getcountedValues()
           
 float[][] getMinMax()
           
 float getTotalAverage()
           
 float getTotalCenterRange()
           
 float[] getTotalMinMax()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minMax

float[][] minMax
Array where min (minMax[component][0]) and max (minMax[component][1]) values of each component will be stored.

All values allowed.


totalMinMax

float[] totalMinMax
Global min (minMax[0]) and max (minMax[1]) values of the image.

All values allowed.


average

float[] average
Average of each component.

All values allowed.


totalAverage

float totalAverage
Average of whole image.

All values allowed.


centerRange

float[] centerRange
Center of range for each image component.

All values allowed.


totalCenterRange

float totalCenterRange
Center of range of whole image.

All values allowed.


countedValues

int[][] countedValues
Array where are stored the how many times is appeared all values in Byte image.

All values allowed-

Constructor Detail

ImageStatistical

public ImageStatistical(float[][][] imageSamples)
Constructor that does all the operations to calculate min and max, average and center range of the image.

Parameters:
imageSamples - a 3D float array that contains image samples

ImageStatistical

public ImageStatistical(int[][][] imageSamples)
Constructor that does all the operations to calculate min and max, average and center range of the image.

Parameters:
imageSamples - a 3D float array that contains image samples
Method Detail

getcountedValues

public int[][] getcountedValues()
Returns:
countedValues definition in this class

getMinMax

public float[][] getMinMax()
Returns:
minMax definition in this class

getTotalMinMax

public float[] getTotalMinMax()
Returns:
totalMinMax definition in this class

getAverage

public float[] getAverage()
Returns:
average definition in this class

getTotalAverage

public float getTotalAverage()
Returns:
totalAverage definition in this class

getCenterRange

public float[] getCenterRange()
Returns:
centerRange definition in this class

getTotalCenterRange

public float getTotalCenterRange()
Returns:
totalCenterRange definition in this class


TER - Copyright (C) 2006
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) - UAB (Spain)