GiciTransform
Class InversePyramidal3D

java.lang.Object
  extended by GiciTransform.InversePyramidal3D

public class InversePyramidal3D
extends java.lang.Object

This class receives a set of parameters to compute an inverse 3d Square (dyadic)Wavelet Transform executing the HyperWaveletDetransform class concordingly. Usage example:
  construct
  setParameters
  run

Version:
1.0
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
(package private)  float[][][] imageSamples
          Image samples (index meaning [z][y][x]).
(package private)  boolean parametersSet
          To know if parameters are set.
(package private)  int[] WTLevels
          DWDt levels to apply for each dimension.
(package private)  int WTOrder
          To know the order in which the detransform is going to be applied.
(package private)  int[] WTTypes
          Discrete wavelet detransform to be applied at each dimension.
(package private)  int xSize
          Definition in ForwardPyramidal3D.xSize
(package private)  int[] xSubBandSizes
          Array to store the Sub-band Sizes for every level in the X axis.
(package private)  int ySize
          Definition in ForwardPyramidal3D.ySize
(package private)  int[] ySubBandSizes
          Array to store the Sub-band Sizes for every level in the Y axis.
(package private)  int zSize
          Definition in ForwardPyramidal3D.zSize
(package private)  int[] zSubBandSizes
          Array to store the Sub-band Sizes for every level in the Z axis.
 
Constructor Summary
InversePyramidal3D(float[][][] imageSamples)
          Constructor, receives the image samples to detransform.
 
Method Summary
private  void computeSubBandSizes()
          This function compute the Sub-Band Sizes for every dimension.
 float[][][] run()
          Performs the requested Wavelet transform Model and returns the result image.
 void setParameters(int[] WTTypes, int[] WTLevels)
          Set the parameters used to apply the discrete wavelet transform, legacy use, WTOrder is going to be set to default values.
 void setParameters(int[] WTTypes, int[] WTLevels, int WTOrder)
          Set the parameters used to apply the discrete wavelet transform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageSamples

float[][][] imageSamples
Image samples (index meaning [z][y][x]).


zSize

int zSize
Definition in ForwardPyramidal3D.zSize


ySize

int ySize
Definition in ForwardPyramidal3D.ySize


xSize

int xSize
Definition in ForwardPyramidal3D.xSize


WTTypes

int[] WTTypes
Discrete wavelet detransform to be applied at each dimension.

Only the 3 first elements of the array are going to be taken, the rest is ignored.

Valid values are:


WTLevels

int[] WTLevels
DWDt levels to apply for each dimension.

Negative values not allowed. Only the 3 first elements of the array are going to be taken, the rest is ignored.


WTOrder

int WTOrder
To know the order in which the detransform is going to be applied.

Valid values are:


parametersSet

boolean parametersSet
To know if parameters are set.

True indicates that they are set otherwise false.


xSubBandSizes

int[] xSubBandSizes
Array to store the Sub-band Sizes for every level in the X axis.


ySubBandSizes

int[] ySubBandSizes
Array to store the Sub-band Sizes for every level in the Y axis.


zSubBandSizes

int[] zSubBandSizes
Array to store the Sub-band Sizes for every level in the Z axis.

Constructor Detail

InversePyramidal3D

public InversePyramidal3D(float[][][] imageSamples)
Constructor, receives the image samples to detransform.

Parameters:
imageSamples - definition in imageSamples
Method Detail

setParameters

public void setParameters(int[] WTTypes,
                          int[] WTLevels)
Set the parameters used to apply the discrete wavelet transform, legacy use, WTOrder is going to be set to default values.

Parameters:
WTTypes - definition in WTTypes
WTLevels - definition in WTLevels

setParameters

public void setParameters(int[] WTTypes,
                          int[] WTLevels,
                          int WTOrder)
Set the parameters used to apply the discrete wavelet transform.

Parameters:
WTTypes - definition in WTTypes
WTLevels - definition in WTLevels
WTOrder - definition in WTOrder

run

public float[][][] run()
                throws ErrorException
Performs the requested Wavelet transform Model and returns the result image.

Returns:
the DWT image
Throws:
ErrorException - when parameters are not set, wavelet type is unrecognized or there is an insconsistency in the parameters.

computeSubBandSizes

private void computeSubBandSizes()
This function compute the Sub-Band Sizes for every dimension.



TER - Copyright (C) 2006
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) - UAB (Spain)