public class MultiComponentDetransform
extends java.lang.Object
Two constructors are implemented depending on multiple component transformation is specified either by means of the JPEG2000-compliant headers or by means of the uncompliant JPK headers.
Modifier and Type | Field and Description |
---|---|
private CBDParameters |
cbdParameters
Definition in
CBDParameters . |
private JPEG2KCodestream |
codestream |
private int[] |
componentIndexes
Is an one-dimensional array with the component indexes which will be
returned after the multi-component transform has been applied.
|
private float[][][] |
imageSamples
Multi-component image which will be detransformed along the component
dimension (spectral dimension).
|
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[] |
relevantComponentIndexes
Is an one-dimensional array with the component indexes which are
necessaries to invert the multi-component transform.
|
private float[][][] |
tmpImageSamples
Multi-component image which will be used as a temporary image in order
to apply the inverse multi-component transform.
|
Constructor and Description |
---|
MultiComponentDetransform(JPEG2KCodestream codestream,
float[][][] imageSamples,
java.util.HashMap<java.lang.Integer,MCTParameters> mctParametersList,
java.util.HashMap<java.lang.Integer,MCCParameters> mccParametersList,
MCOParameters mcoParameters,
int[] relevantComponentIndexes,
int[] componentIndexes)
Constructor.
|
MultiComponentDetransform(JPEG2KCodestream codestream,
float[][][] imageSamples,
JPKParameters jpkParameters,
int[] relevantComponentIndexes,
int[] componentIndexes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private int[] |
computeSubBandSizes(int zSize,
int WTLevels)
This function compute the subband sizes for every dimension.
|
private void |
differentialCodingWithRestartIndex(int restartIndex)
Performs the differential coding along the components with a periodical
restart.
|
private void |
differentialCodingWithRestartIndex(int[] restartIndexes)
Performs the differential coding along the components with a non
periodical restart.
|
private void |
discreteWaveletTransform(int type,
int levels) |
float[][][] |
getImage()
Returns the
imageSamples attribute. |
void |
list(java.io.PrintStream out)
Prints this Multi-component detransform out to the specified output
stream.
|
float[][][] |
run()
Performs the multiple component transformation.
|
java.lang.String |
toString() |
private float[][][] imageSamples
private JPEG2KCodestream codestream
private int multiComponentTransformType
CODParameters.multiComponentTransform
.private CBDParameters cbdParameters
CBDParameters
.private java.util.HashMap<java.lang.Integer,MCTParameters> mctParametersList
MCTParameters
.private java.util.HashMap<java.lang.Integer,MCCParameters> mccParametersList
MCCParameters
.private MCOParameters mcoParameters
MCOParameters
.private JPKParameters jpkParameters
JPKParameters
.private int[] relevantComponentIndexes
private int[] componentIndexes
private boolean isNoCompliantMCT
private float[][][] tmpImageSamples
public MultiComponentDetransform(JPEG2KCodestream codestream, float[][][] imageSamples, java.util.HashMap<java.lang.Integer,MCTParameters> mctParametersList, java.util.HashMap<java.lang.Integer,MCCParameters> mccParametersList, MCOParameters mcoParameters, int[] relevantComponentIndexes, int[] componentIndexes)
imageSamples
- definition in imageSamples
.mctParametersList
- definition in mctParametersList
.mccParametersList
- definition in mccParametersList
.mcoParameters
- definition in mcoParameters
.relevantComponentIndexes
- definition in relevantComponentIndexes
.public MultiComponentDetransform(JPEG2KCodestream codestream, float[][][] imageSamples, JPKParameters jpkParameters, int[] relevantComponentIndexes, int[] componentIndexes)
It must be used when the multiple component transformation is performed through the JPK main headers in the codestream. This is a non JEPG2000 compliant headers.
imageSamples
- definition in imageSamples
.jpkParameters
- definition in jpkParameters
.relevantComponentIndexes
- definition in relevantComponentIndexes
.componentIndexes
- definition in componentIndexes
.public float[][][] run() throws ErrorException
imageSamples
attribute.ErrorException
public float[][][] getImage()
imageSamples
attribute.imageSamples
attribute.public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.private void discreteWaveletTransform(int type, int levels) throws ErrorException
type
- levels
- ErrorException
private void differentialCodingWithRestartIndex(int restartIndex) throws ErrorException
restartIndex
- ErrorException
private void differentialCodingWithRestartIndex(int[] restartIndexes) throws ErrorException
restartIndexes
- ErrorException
private int[] computeSubBandSizes(int zSize, int WTLevels)
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)