public class Dequantization
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ClientJPEG2KCodestream |
codestream |
private ClientJPEG2KComponent |
compObj |
static float |
DEFAULT_SUBBAND_RECONSTRUCTION |
private int[] |
gain
Log_2 gain bits for each subband (LL, HL, LH, HH).
|
private float[][][] |
imageSamples |
private ClientJPEG2KResolutionLevel |
rLevelObj |
private float |
subbandReconstructionValue
Reconstruction parameter used to adjust better the dequantitzation process (when QTypes == 1).
|
private ClientJPEG2KTile |
tileObj |
Constructor and Description |
---|
Dequantization(ClientJPEG2KCodestream codestream)
Constructor.
|
Dequantization(ClientJPEG2KCodestream codestream,
float subbandReconstructionValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
list(java.io.PrintStream out)
Prints this Dequantization's fields to the specified output stream.
|
void |
run(float[][][] imageSamples,
int discardLevels,
int[] relevantComponents)
Performs the dequantization of the image
imageSamples . |
java.lang.String |
toString() |
private ClientJPEG2KCodestream codestream
private ClientJPEG2KTile tileObj
private ClientJPEG2KComponent compObj
private ClientJPEG2KResolutionLevel rLevelObj
private float[][][] imageSamples
private float subbandReconstructionValue
Recommened values between 0 to 1.
public static final float DEFAULT_SUBBAND_RECONSTRUCTION
private final int[] gain
Constant values.
public Dequantization(ClientJPEG2KCodestream codestream)
codestream
- definition in codestream
.public Dequantization(ClientJPEG2KCodestream codestream, float subbandReconstructionValue)
codestream
- definition in codestream
subbandReconstructionValue
- definition in subbandReconstructionValue
.public void run(float[][][] imageSamples, int discardLevels, int[] relevantComponents) throws ErrorException
imageSamples
.imageSamples
- 3D array with the image samples to be dequantized.discardLevels
- number of discard levels.relevantComponents
- one-dimensional array with the relevant components.ErrorException
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
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)