GiciAnalysis
Class ImageStatisticalSA

java.lang.Object
  extended by GiciAnalysis.ImageStatisticalSA

public class ImageStatisticalSA
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)  double[] averageDR
          Average for the data values of each component.
(package private)  double[] averageNDR
          Average for the no-data values of each component.
(package private)  double[] averageStdDevDNDR
          Difference with the average in mean for data pixels against of no-data region.
(package private)  double[] averageStdDevDR
          Difference with the average in mean for all data pixels for each component.
(package private)  double[] averageStdDevNDR
          Difference with the average in mean for all no-data pixels for each component.
(package private)  float[] centerRange
          Center of range for each data values in the input image components.
(package private)  float[][] minMax
          Array where min (minMax[component][0]) and max (minMax[component][1]) values of each component will be stored.
(package private)  long[] numberOfPixelsData
          Number of data pixels for each component of whole image.
(package private)  double totalAverageDR
          Average for data values of whole image.
(package private)  double totalAverageNDR
          Average for no-data values of whole image.
(package private)  double totalAverageStdDevDNDR
          Difference with the average in mean for all data pixels against of no-data regions for all components.
(package private)  double totalAverageStdDevDR
          Difference with the average in mean for all data pixels for all components.
(package private)  double totalAverageStdDevNDR
          Difference with the average in mean for all no-data pixels for all components.
(package private)  float totalCenterRange
          Center of range of data values in the image.
(package private)  float[] totalMinMax
          Global min (minMax[0]) and max (minMax[1]) values of the image.
(package private)  long totalNumberOfPixelsData
          Number of data pixels for all component of whole image.
 
Constructor Summary
ImageStatisticalSA(float[][][] imageSamples, byte[][][] maskSamples)
          Constructor that does all the operations to calculate min and max, average and center range of the image.
 
Method Summary
 double[] getAverageDR()
           
 double[] getAverageNDR()
           
 double[] getAverageStdDevDNDR()
           
 double[] getAverageStdDevDR()
           
 double[] getAverageStdDevNDR()
           
 float[] getCenterRange()
           
 float[][] getMinMax()
           
 long[] getNumberOfPixelsData()
           
 double getTotalAverageDR()
           
 double getTotalAverageNDR()
           
 double getTotalAverageStdDevDNDR()
           
 double getTotalAverageStdDevDR()
           
 double getTotalAverageStdDevNDR()
           
 float getTotalCenterRange()
           
 float[] getTotalMinMax()
           
 long getTotalNumberOfPixelsData()
           
 
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.


averageDR

double[] averageDR
Average for the data values of each component.

All values allowed.


totalAverageDR

double totalAverageDR
Average for data values of whole image.

All values allowed.


averageNDR

double[] averageNDR
Average for the no-data values of each component.

All values allowed.


totalAverageNDR

double totalAverageNDR
Average for no-data values of whole image.

All values allowed.


centerRange

float[] centerRange
Center of range for each data values in the input image components.

All values allowed.


totalCenterRange

float totalCenterRange
Center of range of data values in the image.

All values allowed.


numberOfPixelsData

long[] numberOfPixelsData
Number of data pixels for each component of whole image.

All values allowed.


totalNumberOfPixelsData

long totalNumberOfPixelsData
Number of data pixels for all component of whole image.

All values allowed.


averageStdDevDR

double[] averageStdDevDR
Difference with the average in mean for all data pixels for each component.

All values allowed.


totalAverageStdDevDR

double totalAverageStdDevDR
Difference with the average in mean for all data pixels for all components.

All values allowed.


averageStdDevNDR

double[] averageStdDevNDR
Difference with the average in mean for all no-data pixels for each component.

All values allowed.


totalAverageStdDevNDR

double totalAverageStdDevNDR
Difference with the average in mean for all no-data pixels for all components.

All values allowed.


averageStdDevDNDR

double[] averageStdDevDNDR
Difference with the average in mean for data pixels against of no-data region.

All values allowed.


totalAverageStdDevDNDR

double totalAverageStdDevDNDR
Difference with the average in mean for all data pixels against of no-data regions for all components.

All values allowed.

Constructor Detail

ImageStatisticalSA

public ImageStatisticalSA(float[][][] imageSamples,
                          byte[][][] maskSamples)
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
maskSamples - a 3D byte array that contains the mask for each component in the input image
Method Detail

getMinMax

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

getTotalMinMax

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

getAverageDR

public double[] getAverageDR()
Returns:
averageDR definition in this class

getTotalAverageDR

public double getTotalAverageDR()
Returns:
totalAverageDR definition in this class

getAverageNDR

public double[] getAverageNDR()
Returns:
averageNDR definition in this class

getTotalAverageNDR

public double getTotalAverageNDR()
Returns:
totalAverageNDR definition in this class

getAverageStdDevDR

public double[] getAverageStdDevDR()
Returns:
averageStdDevDR definition in this class

getTotalAverageStdDevDR

public double getTotalAverageStdDevDR()
Returns:
totalAverageStdDevDR definition in this class

getAverageStdDevNDR

public double[] getAverageStdDevNDR()
Returns:
averageStdDevNDR definition in this class

getTotalAverageStdDevNDR

public double getTotalAverageStdDevNDR()
Returns:
totalAverageStdDevDR definition in this class

getAverageStdDevDNDR

public double[] getAverageStdDevDNDR()
Returns:
averageStdDevDNDR definition in this class

getTotalAverageStdDevDNDR

public double getTotalAverageStdDevDNDR()
Returns:
totalAverageStdDevDR definition in this class

getCenterRange

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

getTotalCenterRange

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

getNumberOfPixelsData

public long[] getNumberOfPixelsData()
Returns:
numberOfPixelsData definition in this class

getTotalNumberOfPixelsData

public long getTotalNumberOfPixelsData()
Returns:
totalNumberOfPixelsData 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)