CADI.Common.LogicalTarget.JPEG2000.Detransform
Class RangeRecovery

java.lang.Object
  extended by CADI.Common.LogicalTarget.JPEG2000.Detransform.RangeRecovery

public class RangeRecovery
extends java.lang.Object

This class receives an image and change its range (the bit depth) to their original one. Usage example:
  construct
  setParameters
  run
  get functions

Version:
1.0 2008/12/08
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
private  float[][][] imageSamples
          Definition in JPEG2KLogicalTarget.imageSamplesFloat
private  boolean parametersSet
          To know if parameters are set.
private  int[] precision
          Definition in SIZParameters.precision
private  float[] RMMultValues
          Value used to modificate the range of each component using a multiplication.
private  int xSize
          Definition in SIZParameters.xSize
private  int ySize
          Definition in SIZParameters.ySize
private  int zSize
          Definition in SIZParameters.zSize
 
Constructor Summary
RangeRecovery(float[][][] imageSamples, int[] precision)
          Constructor that receives the original image samples and some other data.
 
Method Summary
 int[] getPrecision()
          Returns the precision attribute.
 void list(java.io.PrintStream out)
          Prints this Range recovery's fields to the specified output stream.
 float[][][] run()
          Performs the range remodification operations and returns the result image.
 void setParameters(float[] RMMultValues)
          Set the parameters used to do the range modification operation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

imageSamples

private float[][][] imageSamples
Definition in JPEG2KLogicalTarget.imageSamplesFloat


zSize

private int zSize
Definition in SIZParameters.zSize


ySize

private int ySize
Definition in SIZParameters.ySize


xSize

private int xSize
Definition in SIZParameters.xSize


precision

private int[] precision
Definition in SIZParameters.precision


RMMultValues

private float[] RMMultValues
Value used to modificate the range of each component using a multiplication.

Only values greater than 0 allowed.


parametersSet

private boolean parametersSet
To know if parameters are set.

True indicates that they are set otherwise false.

Constructor Detail

RangeRecovery

public RangeRecovery(float[][][] imageSamples,
                     int[] precision)
Constructor that receives the original image samples and some other data.

Parameters:
imageSamples - definition in imageSamples
precision - definition in precision
Method Detail

setParameters

public void setParameters(float[] RMMultValues)
Set the parameters used to do the range modification operation.

Parameters:
RMMultValues - definition in RMMultValues

run

public float[][][] run()
                throws ErrorException
Performs the range remodification operations and returns the result image.

Returns:
the range recovery image
Throws:
ErrorException - when parameters are not set or unrecognized range modification type is passed

getPrecision

public int[] getPrecision()
Returns the precision attribute.

Returns:
the precision attribute.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

list

public void list(java.io.PrintStream out)
Prints this Range recovery's fields to the specified output stream. This method is useful for debugging.

Parameters:
out - an output stream.


CADI - Copyright (C) 2007
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) (contact)