GiciTransform
Class CoefficientsApproximation

java.lang.Object
  extended by GiciTransform.CoefficientsApproximation

public class CoefficientsApproximation
extends java.lang.Object

This class receives an image and approximates its coefficients.
Usage example:
  construct
  setParameters
  run

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

Field Summary
(package private)  int[] approximationTypes
          Approximation to be applied to coefficients of each channel.
(package private)  float[][][] imageSamples
          Definition in Coder
(package private)  boolean parametersSet
          To know if parameters are set.
 
Constructor Summary
CoefficientsApproximation(float[][][] imageSamples)
          Constructor that receives the original image samples.
 
Method Summary
 float[][][] run()
          Performs the approximation for each of the coefficients of the transformed image
 void setParameters(int[] approximationTypes)
          Set the parameter that specifies the type of approximation
static boolean TERsetApproximationNeed(int[] approximationTypes)
          States if approximation is needed according to the user specifications and the requirements of the TER software
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageSamples

float[][][] imageSamples
Definition in Coder


approximationTypes

int[] approximationTypes
Approximation to be applied to coefficients of each channel.

Valid values are:


parametersSet

boolean parametersSet
To know if parameters are set.

True indicates that they are set otherwise false.

Constructor Detail

CoefficientsApproximation

public CoefficientsApproximation(float[][][] imageSamples)
Constructor that receives the original image samples.

Parameters:
imageSamples - definition in Coder
Method Detail

setParameters

public void setParameters(int[] approximationTypes)
Set the parameter that specifies the type of approximation

Parameters:
approximationTypes - definition in approximationTypes

run

public float[][][] run()
                throws ErrorException
Performs the approximation for each of the coefficients of the transformed image

Returns:
the image with the coefficients approximated
Throws:
ErrorException - when parameters are not set

TERsetApproximationNeed

public static boolean TERsetApproximationNeed(int[] approximationTypes)
States if approximation is needed according to the user specifications and the requirements of the TER software

Parameters:
approximationTypes - definition in approximationTypes
Returns:
a boolean that indicates if the approximation is required


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)