CADI.Common.LogicalTarget.JPEG2000.Parameters
Class QCDParameters

java.lang.Object
  extended by CADI.Common.LogicalTarget.JPEG2000.Parameters.QCDParameters

public class QCDParameters
extends java.lang.Object

This class storages the quantization default (QCD) and the quantization component (QCC). Further and detailed information, see ISO/IEC 15444-1 section A.6.4 and section A.6.5, respectively.

Version:
1.0 07/11/2008
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
 int[][][] QExponents
          Quantization exponents for each component, resolution level and subband (LL, HL, LH, HH).
 int QGuardBits
          In this class we don't modify or use this variable.
 int[][][] QMantisas
          Quantization mantisas for each component, resolution level and subband (LL, HL, LH, HH).
 int[] QTypes
          Type of quantization to apply in each image component.
 
Constructor Summary
QCDParameters()
          Constructor.
QCDParameters(QCDParameters parameters)
          Deep copy constructor.
 
Method Summary
 void list(java.io.PrintStream out)
          Prints this QCD parameters' fields to the specified output stream.
 void reset()
          Sets the attributes to its initial values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QTypes

public int[] QTypes
Type of quantization to apply in each image component.

Valid values are:


QExponents

public int[][][] QExponents
Quantization exponents for each component, resolution level and subband (LL, HL, LH, HH).
Index of arrays means:
  z: image component
  resolutionLevel: 0 is the LL subband, and 1, 2, ... represents next starting with the little one
  subband: 0 - HL, 1 - LH, 2 - HH (if resolutionLevel == 0 --> 0 - LL)

Values between 0 to 2^5 allowed.


QMantisas

public int[][][] QMantisas
Quantization mantisas for each component, resolution level and subband (LL, HL, LH, HH).
Index of arrays means:
  z: image component
  resolutionLevel: 0 is the LL subband, and 1, 2, ... represents next starting with the little one
  subband: 0 - HL, 1 - LH, 2 - HH (if resolutionLevel == 0 --> 0 - LL)

Values between 0 to 2^11 allowed.


QGuardBits

public int QGuardBits
In this class we don't modify or use this variable. Only explanation. It's used in FileWrite/PrecinctBuild. Guard Bits are used to increment the number of possible bit planes when subbands are shifted. It is very recommendable that this variable has values equal or greater than one to avoid possible errors.

Possible values are from 0 to 7.

Constructor Detail

QCDParameters

public QCDParameters()
Constructor.


QCDParameters

public QCDParameters(QCDParameters parameters)
Deep copy constructor.

Parameters:
parameters - an object of this class.
Method Detail

reset

public void reset()
Sets the attributes to its initial values.


toString

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

list

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