CADI.Common.LogicalTarget.JPEG2000.Detransform
Class ImageBuild

java.lang.Object
  extended by CADI.Common.LogicalTarget.JPEG2000.Detransform.ImageBuild

public class ImageBuild
extends java.lang.Object

This class receives a multidimensional array of blocks and builds an image. Usage example:
  construct
  run

Version:
1.0.2 2008/12/08
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
private  int[] BDBlockHeights
          Definition in CODParameters.blockHeights
private  int[] BDBlockWidths
          Definition in CODParameters.blockWidths
private  int[][][][] blockSizes
          A multidimensional array containing the valid block sizes that can be retrieved.
private  int[] components
           
private  int[][][] componentSizes
          A multidimensional array containing the component sizes for each component (complete component size, not block sizes).
private  int[][][][][][][] imageBlocks
          Definition in BlockDecode.imageBlocks
private  int[][][] imageSamplesInt
          Definition in JPEG2KDecoder.imageSamplesInt
private  int resolutionLevelAchieved
           
private  ViewWindowField viewWindow
           
private  int[] WTLevels
          Definition in CODParameters.WTLevels
private  int xSize
          Definition in SIZParameters.xSize
private  int ySize
          Definition in SIZParameters.ySize
private  int zSize
          Definition in SIZParameters.zSize
 
Constructor Summary
ImageBuild(SIZParameters sizParameters, CODParameters codParameters, int[][][][][][][] imageBlocks, int resolutionLevelAchieved, ViewWindowField viewWindow, int[] components)
          Constructor.
 
Method Summary
private  void calculateComponentAndBlockSizes()
           
 int[][][] getImageSamples()
          Returns the imageSamplesInt attribute.
 void list(java.io.PrintStream out)
          Prints this Image Build fields out to the specified output stream.
 int[][][] run()
          Performs the image built.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

zSize

private int zSize
Definition in SIZParameters.zSize


ySize

private int ySize
Definition in SIZParameters.ySize


xSize

private int xSize
Definition in SIZParameters.xSize


imageBlocks

private int[][][][][][][] imageBlocks
Definition in BlockDecode.imageBlocks


WTLevels

private int[] WTLevels
Definition in CODParameters.WTLevels


resolutionLevelAchieved

private int resolutionLevelAchieved

viewWindow

private ViewWindowField viewWindow

imageSamplesInt

private int[][][] imageSamplesInt
Definition in JPEG2KDecoder.imageSamplesInt


componentSizes

private int[][][] componentSizes
A multidimensional array containing the component sizes for each component (complete component size, not block sizes). The indices are imageSize+   z: image component
  componentSize: 0 is the smallest component size that can be retrieved
  orientation: 0 is the width and 1 is the height
For example, [2][0][1] is the smallest component height of the third component, [1][1][0] is the second valid width size of the second component+

The content must be understood as the component sizes.


blockSizes

private int[][][][] blockSizes
A multidimensional array containing the valid block sizes that can be retrieved. The indices are blockSizes[z][componentSize][orientation][windo+   z: image component
  componentSize: 0 is the smallest component size that can be retrieved
  orientation: 0 is the width and 1 is the height
  windowSizeInfo: 0 is the block size and 1 is the number of blocks of this area
For example, [2][0][1][0] is the block size (height) of the smallest size of the third component, [1][1][0][1] is the number of width blocks of +

The content must be understood as the block size and the number of blocks for each area.


BDBlockWidths

private int[] BDBlockWidths
Definition in CODParameters.blockWidths


BDBlockHeights

private int[] BDBlockHeights
Definition in CODParameters.blockHeights


components

private int[] components
Constructor Detail

ImageBuild

public ImageBuild(SIZParameters sizParameters,
                  CODParameters codParameters,
                  int[][][][][][][] imageBlocks,
                  int resolutionLevelAchieved,
                  ViewWindowField viewWindow,
                  int[] components)
Constructor.

Parameters:
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.
imageBlocks - definition in imageBlocks
resolutionLevelAchieved - definition in resolutionLevelAchieved.
viewWindow - definition in viewWindow.
Method Detail

run

public int[][][] run()
Performs the image built.

Returns:
definition in imageSamplesInt.

getImageSamples

public int[][][] getImageSamples()
Returns the imageSamplesInt attribute.

Returns:
the imageSamplesInt attribute.

toString

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

list

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

Parameters:
out - an output stream.

calculateComponentAndBlockSizes

private void calculateComponentAndBlockSizes()


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)