CADI.Client.ClientLogicalTarget.JPEG2000
Class CalculateRelevantComponents

java.lang.Object
  extended by CADI.Client.ClientLogicalTarget.JPEG2000.CalculateRelevantComponents

public class CalculateRelevantComponents
extends java.lang.Object

This class calculates which are the relevant components necessaries to invert a multiple component transformation.

Usage example:
  constructor
  run
  [getMethods]

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

Field Summary
private  CBDParameters cbdParameters
          Definition in CBDParameters.
private  int[][] comps
          Is the range of components which are needed after the multiple component transformation has been applied.
private  boolean isNoCompliantMCT
          Indicates whether the multiple component transformation is signalled by means of either CBD, MCT, MCC, and MCO parameters or the JPK parameters.
private  JPKParameters jpkParameters
          Definition in JPKParameters.
private  java.util.HashMap<java.lang.Integer,MCCParameters> mccParametersList
          Definition in MCCParameters.
private  MCOParameters mcoParameters
          Definition in MCOParameters.
private  java.util.HashMap<java.lang.Integer,MCTParameters> mctParametersList
          Definition in MCTParameters.
private  int multiComponentTransformType
          Definition in CODParameters.multiComponentTransform.
private  int[][] relevantComps
          Is a bi-dimensional array with then required range of components.
private  int zSize
          Definition in SIZParameters.zSize
 
Constructor Summary
CalculateRelevantComponents(int multiComponentTransformType, int zSize, CBDParameters cbdParameters, java.util.HashMap<java.lang.Integer,MCTParameters> mctParametersList, java.util.HashMap<java.lang.Integer,MCCParameters> mccParametersList, MCOParameters mcoParameters, int[][] comps)
          Constructor.
CalculateRelevantComponents(JPKParameters jpkParameters, int zSize, int[][] comps)
          Constructor.
 
Method Summary
 int[][] getRelevantComponents()
          Returns the relevantComps attribute.
private  int[][] getRelevantComponentsColorTransform(int[][] compsRanges)
          This method calculates which components are needed to invert a multiple component transformation when a color transform has been applied.
private  int[][] getRelevantComponentsDWT(int[][] compsRanges, int DWTType, int DWTLevels)
          This method computes which components are needed to decompress a range image components which have been DWT spectrally transformed.
 void list(java.io.PrintStream out)
          Prints this CalculateRelevantComponents out to the specified output stream.
 int[][] run()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

multiComponentTransformType

private int multiComponentTransformType
Definition in CODParameters.multiComponentTransform.


cbdParameters

private CBDParameters cbdParameters
Definition in CBDParameters.


mctParametersList

private java.util.HashMap<java.lang.Integer,MCTParameters> mctParametersList
Definition in MCTParameters.


mccParametersList

private java.util.HashMap<java.lang.Integer,MCCParameters> mccParametersList
Definition in MCCParameters.


mcoParameters

private MCOParameters mcoParameters
Definition in MCOParameters.


jpkParameters

private JPKParameters jpkParameters
Definition in JPKParameters.


zSize

private int zSize
Definition in SIZParameters.zSize


comps

private int[][] comps
Is the range of components which are needed after the multiple component transformation has been applied.

The first index is an array index, from 0 to the maximum number of ranges. And the second index indicates: 0 stands for the first component of the range, and 1 stands for the last component of the range (both are included).

This attribute is the same as ViewWindowField.comps.


relevantComps

private int[][] relevantComps
Is a bi-dimensional array with then required range of components. Indexes mean the same as the comps attribute.


isNoCompliantMCT

private boolean isNoCompliantMCT
Indicates whether the multiple component transformation is signalled by means of either CBD, MCT, MCC, and MCO parameters or the JPK parameters.

Constructor Detail

CalculateRelevantComponents

public CalculateRelevantComponents(int multiComponentTransformType,
                                   int zSize,
                                   CBDParameters cbdParameters,
                                   java.util.HashMap<java.lang.Integer,MCTParameters> mctParametersList,
                                   java.util.HashMap<java.lang.Integer,MCCParameters> mccParametersList,
                                   MCOParameters mcoParameters,
                                   int[][] comps)
Constructor.

Parameters:
multiComponentTransformType - definition in multiComponentTransformType.
cbdParameters - definition in cbdParameters.
mctParametersList - definition in mctParametersList.
mccParametersList - definition in mccParametersList.
mcoParameters - definition in mcoParameters.
comps - definition in comps.

CalculateRelevantComponents

public CalculateRelevantComponents(JPKParameters jpkParameters,
                                   int zSize,
                                   int[][] comps)
Constructor.

Parameters:
jpkParameters - definition in jpkParameters.
comps - definition in comps.
Method Detail

run

public int[][] run()
            throws ErrorException
Returns:
the relevantComps attribute.
Throws:
ErrorException

getRelevantComponents

public int[][] getRelevantComponents()
Returns the relevantComps attribute.

Returns:
the relevantComps attribute.

toString

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

list

public void list(java.io.PrintStream out)
Prints this CalculateRelevantComponents out to the specified output stream. This method is useful for debugging.

Parameters:
out - an output stream.

getRelevantComponentsDWT

private int[][] getRelevantComponentsDWT(int[][] compsRanges,
                                         int DWTType,
                                         int DWTLevels)
This method computes which components are needed to decompress a range image components which have been DWT spectrally transformed.

Parameters:
compsRanges - the range of components to be decompressed. The first index is an array index of the ranges. An the second index indicates: 0 is the first component of the range, and 1 is the last component of the range.
Returns:
a bi-dimensional array with then required range of components. Indexes mean the same as the compsRanges input parameter.

getRelevantComponentsColorTransform

private int[][] getRelevantComponentsColorTransform(int[][] compsRanges)
This method calculates which components are needed to invert a multiple component transformation when a color transform has been applied.

Parameters:
compsRanges - definition in comps.
Returns:
a bi-dimensional array with then required range of components. Indexes mean the same as the compsRanges input parameter.


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)