CADI.Common.LogicalTarget.JPEG2000.Detransform
Class ColourDetransform

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

public class ColourDetransform
extends java.lang.Object

This class receives a colour image and applies the irreversible colour transform defined in JPEG2000 standard.

Usage example:
  construct
  run

Version:
1.1.0 2008/12/13
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
private static float[][] ICT
          Matrix of inverse ICT The values are static.
private  float[][][] imageSamples
          Definition in JPEG2KLogicalTarget.imageSamplesFloat
private  boolean reversible
          If true, a reversible component transformation will be applied.
private  int xSize
          Definition in SIZParameters.xSize
private  int ySize
          Definition in SIZParameters.ySize
 
Constructor Summary
ColourDetransform(float[][][] imageSamples, boolean reversible)
          Constructor that receives the original image samples.
 
Method Summary
 void list(java.io.PrintStream out)
          Prints this ColourDetransform's fields to the specified output stream.
 float[][][] run()
          Performs the colour detransform and returns the result image.
 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


ySize

private int ySize
Definition in SIZParameters.ySize


xSize

private int xSize
Definition in SIZParameters.xSize


reversible

private boolean reversible
If true, a reversible component transformation will be applied. Otherwise, the component transformation will be irreversible.


ICT

private static float[][] ICT
Matrix of inverse ICT

The values are static.

Constructor Detail

ColourDetransform

public ColourDetransform(float[][][] imageSamples,
                         boolean reversible)
Constructor that receives the original image samples.

Parameters:
imageSamples - definition in imageSamples
reversible - definition in reversible.
Method Detail

run

public float[][][] run()
                throws ErrorException
Performs the colour detransform and returns the result image.

Returns:
the colour transformed image
Throws:
ErrorException - when parameters are not set or unrecognized colour transform is passed

toString

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

list

public void list(java.io.PrintStream out)
Prints this ColourDetransform'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)