CADI.Common.LogicalTarget.JPEG2000
Class JPEG2000Util

java.lang.Object
  extended by CADI.Common.LogicalTarget.JPEG2000.JPEG2000Util

public class JPEG2000Util
extends java.lang.Object

This class contains several useful functions to handle JPEG2000 images or its parameters.

Version:
1.0 2007/12/14
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
private static int X
           
private static int Y
           
 
Constructor Summary
JPEG2000Util()
           
 
Method Summary
static void adjustViewWindowToPrecinctSizes(int[] fsiz, int[] roff, int[] rsiz, int components, int ySize, int xSize, int XOsize, int YOsize, int[] WTLevels, int[][] BDResolutionPrecinctWidths, int[][] BDResolutionPrecinctHeights)
          Adjusts the view window ajusting their boundaries to the precinct boundaries.
static void adjustViewWindowToPrecinctSizes(ViewWindowField viewWindow, SIZParameters sizParameters, CODParameters codParameters)
          Adjusts the view window ajusting their boundaries to the precinct boundaries.
private static int[][] availableFrameSizes(int xSize, int ySize, int XOsize, int YOsize, int WTLevels)
          Calculates the frame sizes for each resolution level according to the image parameters that are passed to the function.
static int[][][] availableFrameSizes(int xSize, int ySize, int XOsize, int YOsize, int[] WTLevels)
          Calculates the frame sizes for each image components and resolution level according to the image parameters that are passed to the function.
static int[][][] availableFrameSizes(SIZParameters sizParameters, CODParameters codParameters)
          Calculates the frame sizes for each image components and resolution level according to the image parameters that are passed to the function.
static int[][][] calculateFirstPrecinctPerResolutionLevel(int numTiles, int numComponents, int[] WTLevels, int[][][] frameSizes, int[][] resolutionPrecinctWidths, int[][] resolutionPrecinctHeights)
           
static int[][][] calculateFirstPrecinctPerResolutionLevel(SIZParameters sizParameters, CODParameters codParameters, int[][][] frameSizes)
           
static int calculateRateDistortionAdjustment(int[] BCLCRateDistortionAdjustment, int z, int totalRLevels, int rLevel, int subband)
          Calculate the rate disortion adjustment (depending on BCRateDistortionAdjustment) for a resolution level and subband.
static ViewWindowField calculateResponseViewWindow(int xSize, int ySize, int zSize, int XOsize, int YOsize, int[] WTLevels, int[] fsiz, int[] roff, int[] rsiz, int layers, int LCAchievedNumLayers, int[][] BDResolutionPrecinctWidths, int[][] BDResolutionPrecinctHeights)
          Find the best view window according to the client request view window and the logical target structure
static ViewWindowField calculateResponseViewWindow(ViewWindowField viewWindow, SIZParameters sizParameters, CODParameters codParameters)
          Find the best view window according to the client request view window and the logical target structure
static int[][] calculateSubbandSizes(int WTLevels, int xSize, int ySize)
          Deprecated. 
static int[][][] calculateSubbandSizesBak(int[] components, int[] WTLevels, int xSize, int ySize)
          Deprecated. 
static java.util.ArrayList<java.lang.Long> findRelevantPrecincts(int[] fsiz, int[] roff, int[] rsiz, int[][] comps, int maxComponents, int ySize, int xSize, int XOsize, int YOsize, int[] WTLevels, int[][] resolutionPrecinctWidths, int[][] resolutionPrecinctHeights)
          Calculates which are the relevants precincts which belong to the WOI (fsiz, roff, rsiz).
static java.util.ArrayList<java.lang.Long> findRelevantPrecincts(ViewWindowField viewWindow, SIZParameters sizParameters, CODParameters codParameters)
          Calculates which are the relevants precincts belonging to the WOI viewWindow.
static int[] InClassIdentifierToTCP(long inClassIdentifier, int numTiles, int numComponents)
          Converts from the unique inClassIdentifier precinct identifier to tile-component-precinct identifier.
static int[] InClassIdentifierToTCRP(long inClassIdentifier, int maxTiles, int zSize, int xSize, int ySize, int XOsize, int YOsize, int[] WTLevels, int[][] BDResolutionPrecinctWidths, int[][] BDResolutionPrecinctHeights)
          Converts the unique precinct identifier (inClassIdentifier) to a tile-component-resolution level-precinct identifiers.
static int[] InClassIdentifierToTCRP(long inClassIdentifier, SIZParameters sizParameters, CODParameters codParameters)
          Converts from the unique precinct identifier (inClassIdentifier) to a tile-component-resolutionlevel-precinct identifiers.
static int[][][] numberOfPrecinctsPerComponent(int XOsize, int YOsize, int xSize, int ySize, int[] WTLevels, int[][] precinctWidths, int[][] precinctHeights)
          Calculates the number of precincts for each image component.
static int[][][] numberOfPrecinctsPerComponent(SIZParameters sizParameters, CODParameters codParameters)
          Calculates the number of precincts for each image component.
static int[][] numberOfPrecinctsWithinComponent(int XOsize, int YOsize, int xSize, int ySize, int WTLevels, int[] precinctWidths, int[] precinctHeights)
          Calculates the number of precincts within a fixed image component.
static int[][] numberOfPrecinctsWithinComponent(SIZParameters sizParameters, int WTLevels, int[] precinctWidths, int[] precinctHeights)
          Calculates the number of precincts within a fixed image component for each resolution level.
static int suitableResolutionLevel(int[] fsiz, int xSize, int ySize, int XOsize, int YOsize, int WTLevels)
          Calculates which of the resolution levels best fit to the frame size fsiz.
static int[] suitableResolutionLevel(int[] fsiz, SIZParameters sizParameters, CODParameters codParameters)
           
static int[] suitableResolutionLevel(int xSize, int ySize, int XOsize, int YOsize, int[] fsiz, int[] WTLevels)
          Calculates the resolution level which is more suitable for a frame size
static long TCPToInClassIdentifier(int tile, int numTiles, int component, int numComponents, int precinct)
          Converts from the tile-component-precinct identifier to the unique inClassIdentifier precinct identifier.
static long TCRPToInClassIdentifier(int tile, int maxTiles, int component, int maxComponents, int resolutionLevel, int maxWTLevels, int precinct, int xSize, int ySize, int XOsize, int YOsize, int[] ResolutionPrecinctWidths, int[] ResolutionPrecinctHeights)
          Converts from the tile-component-resolution-precinct to an unique in class identifier.
static long TCRPToInClassIdentifier(int tile, int component, int resolutionLevel, int precinct, SIZParameters sizParameters, CODParameters codParameters)
          Converts from the tile-component-resolutionlevel-precinct to an unique in class identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X

private static final int X
See Also:
Constant Field Values

Y

private static final int Y
See Also:
Constant Field Values
Constructor Detail

JPEG2000Util

public JPEG2000Util()
Method Detail

TCPToInClassIdentifier

public static long TCPToInClassIdentifier(int tile,
                                          int numTiles,
                                          int component,
                                          int numComponents,
                                          int precinct)
Converts from the tile-component-precinct identifier to the unique inClassIdentifier precinct identifier.

Parameters:
tile - the tile which the precinct belongs.
numTiles - the maximum number of image tiles
component - the component which the precinct belongs
numComponents - the maximum number of image components
precinct - the number of precinct within the tile-component following a raster mode
Returns:
the precinct unique identifier whithin its codestream.

InClassIdentifierToTCP

public static int[] InClassIdentifierToTCP(long inClassIdentifier,
                                           int numTiles,
                                           int numComponents)
Converts from the unique inClassIdentifier precinct identifier to tile-component-precinct identifier.

Parameters:
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.
numTiles - the maximum number of image tiles
numComponents - the maximum number of image components.
Returns:
an one-dimension array of integers with the Tile-Component-Precinct. Indexes of the array means: TCP[tile][component][precinct]

findRelevantPrecincts

public static java.util.ArrayList<java.lang.Long> findRelevantPrecincts(int[] fsiz,
                                                                        int[] roff,
                                                                        int[] rsiz,
                                                                        int[][] comps,
                                                                        int maxComponents,
                                                                        int ySize,
                                                                        int xSize,
                                                                        int XOsize,
                                                                        int YOsize,
                                                                        int[] WTLevels,
                                                                        int[][] resolutionPrecinctWidths,
                                                                        int[][] resolutionPrecinctHeights)
Calculates which are the relevants precincts which belong to the WOI (fsiz, roff, rsiz). Further information, see ISO/IEC 15444-9 section K.4.1

Parameters:
fsiz - definition in ViewWindowField.fsiz.
roff - definition in ViewWindowField.roff.
rsiz - definition in ViewWindowField.rsiz.
ySize - definition in SIZParameters.ySize.
xSize - definition in SIZParameters.xSize.
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
resolutionPrecinctWidths - definition in CODParameters.precinctWidths.
resolutionPrecinctHeights - definition in CODParameters.precinctHeights.
Returns:
a array list with the unique precinct number which belongs to the WOI.

findRelevantPrecincts

public static java.util.ArrayList<java.lang.Long> findRelevantPrecincts(ViewWindowField viewWindow,
                                                                        SIZParameters sizParameters,
                                                                        CODParameters codParameters)
Calculates which are the relevants precincts belonging to the WOI viewWindow.

Parameters:
viewWindow - definition in ViewWindowField.
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.
Returns:

suitableResolutionLevel

public static int[] suitableResolutionLevel(int xSize,
                                            int ySize,
                                            int XOsize,
                                            int YOsize,
                                            int[] fsiz,
                                            int[] WTLevels)
Calculates the resolution level which is more suitable for a frame size

Parameters:
xSize - definition in SIZParameters.xSize.
ySize - definition in SIZParameters.ySize.
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
fsiz - definition in ViewWindowField.fsiz.
WTLevels - definition in CODParameters.WTLevels.
Returns:
the resolution level for each component

suitableResolutionLevel

public static int[] suitableResolutionLevel(int[] fsiz,
                                            SIZParameters sizParameters,
                                            CODParameters codParameters)
Parameters:
fsiz - definition in ViewWindowField.fsiz.
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.
Returns:
the resolution level for each component

suitableResolutionLevel

public static int suitableResolutionLevel(int[] fsiz,
                                          int xSize,
                                          int ySize,
                                          int XOsize,
                                          int YOsize,
                                          int WTLevels)
Calculates which of the resolution levels best fit to the frame size fsiz.

Parameters:
fsiz - definition in ViewWindowField.fsiz.
xSize - definition in SIZParameters.xSize.
ySize - definition in SIZParameters.ySize.
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
WTLevels - is the number of resolution levels for this tile-component.
Returns:
the resolution that best fit to the frame size.

availableFrameSizes

public static int[][][] availableFrameSizes(int xSize,
                                            int ySize,
                                            int XOsize,
                                            int YOsize,
                                            int[] WTLevels)
Calculates the frame sizes for each image components and resolution level according to the image parameters that are passed to the function.

Parameters:
xSize - definition in SIZParameters.xSize.
ySize - definition in SIZParameters.ySize.
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
WTLevels - definition in CODParameters.WTLevels.
Returns:
frame size for each component. First index is the image component, second is the resolution level, and the third index will be 0 for the frame size width and 1 for the frame size height.

availableFrameSizes

public static int[][][] availableFrameSizes(SIZParameters sizParameters,
                                            CODParameters codParameters)
Calculates the frame sizes for each image components and resolution level according to the image parameters that are passed to the function.

Parameters:
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.
Returns:
frame size for each component. First index is the image component, second is the resolution level, and the third index will be 0 for the frame size width and 1 for the frame size height.

availableFrameSizes

private static int[][] availableFrameSizes(int xSize,
                                           int ySize,
                                           int XOsize,
                                           int YOsize,
                                           int WTLevels)
Calculates the frame sizes for each resolution level according to the image parameters that are passed to the function. Further information, see ISO/IEC 15444-9 sect. C4

Parameters:
xSize - definition in SIZParameters.xSize.
ySize - definition in SIZParameters.ySize.
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
WTLevels - number of wavelet decompositions.
Returns:
an one-dimensional array with the frame sizes for each resolution level. The first index stands for the resolution level and the second one will be, 0 for the width and 1 for the height.

InClassIdentifierToTCRP

public static int[] InClassIdentifierToTCRP(long inClassIdentifier,
                                            int maxTiles,
                                            int zSize,
                                            int xSize,
                                            int ySize,
                                            int XOsize,
                                            int YOsize,
                                            int[] WTLevels,
                                            int[][] BDResolutionPrecinctWidths,
                                            int[][] BDResolutionPrecinctHeights)
Converts the unique precinct identifier (inClassIdentifier) to a tile-component-resolution level-precinct identifiers. The precinct identifer corresponds to precinct number within tile-component- resolution level.

Returns a integer array where the indexes are: tile component resolution level precinct

Parameters:
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.
maxTiles - maximum number of image tiles.
zSize - definition in SIZParameters.zSize.
xSize - definition in SIZParameters.xSize.
ySize - definition in SIZParameters.ySize.
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
WTLevels - definition in CODParameters.WTLevels.
BDResolutionPrecinctWidths - definition in CODParameters.precinctWidths.
BDResolutionPrecinctHeights - definition in CODParameters.precinctHeights.
Returns:
an one-dimension array of integers with the Tile-Component-ResolutionLevel-Precinct. Indexes of the array means: TCRP[tile][component][resolutionLevel][precinct]

InClassIdentifierToTCRP

public static int[] InClassIdentifierToTCRP(long inClassIdentifier,
                                            SIZParameters sizParameters,
                                            CODParameters codParameters)
Converts from the unique precinct identifier (inClassIdentifier) to a tile-component-resolutionlevel-precinct identifiers.

Parameters:
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.
Returns:
an one-dimensional array with the tile-component-resolutionlevel- precinct. The first index stands for the tile (in raster order), the second one for the component, the third for the resolution level, and the fourth for the precinct.

TCRPToInClassIdentifier

public static long TCRPToInClassIdentifier(int tile,
                                           int maxTiles,
                                           int component,
                                           int maxComponents,
                                           int resolutionLevel,
                                           int maxWTLevels,
                                           int precinct,
                                           int xSize,
                                           int ySize,
                                           int XOsize,
                                           int YOsize,
                                           int[] ResolutionPrecinctWidths,
                                           int[] ResolutionPrecinctHeights)
Converts from the tile-component-resolution-precinct to an unique in class identifier.

Parameters:
tile - the tile which the precinct belongs.
maxTiles - the maximum number of image tiles
component - the component which the resolution level belongs
maxComponents - the maximum number of image components
resolutionLevel - the resolution level which the precinct belongs
maxWTLevels - the maximum number of resolution levels.
precinct - the number precinct within the tile-component following a raster mode
xSize - definition in SIZParameters.xSize.
ySize - definition in SIZParameters.ySize.
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
ResolutionPrecinctWidths - definition in CODParameters.precinctWidths.
ResolutionPrecinctHeights - definition in CODParameters.precinctHeights.
Returns:
definition in JPIPMessageHeader.inClassIdentifier.

TCRPToInClassIdentifier

public static long TCRPToInClassIdentifier(int tile,
                                           int component,
                                           int resolutionLevel,
                                           int precinct,
                                           SIZParameters sizParameters,
                                           CODParameters codParameters)
Converts from the tile-component-resolutionlevel-precinct to an unique in class identifier.

Parameters:
tile - the tile which the precinct belongs to.
component - the component which the resolution level belongs to.
resolutionLevel - the resolution level which the precinct belongs to
precinct - the number precinct within the tile-component-resolutionlevel following a raster mode.
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.
Returns:
definition in JPIPMessageHeader.inClassIdentifier.

calculateResponseViewWindow

public static ViewWindowField calculateResponseViewWindow(int xSize,
                                                          int ySize,
                                                          int zSize,
                                                          int XOsize,
                                                          int YOsize,
                                                          int[] WTLevels,
                                                          int[] fsiz,
                                                          int[] roff,
                                                          int[] rsiz,
                                                          int layers,
                                                          int LCAchievedNumLayers,
                                                          int[][] BDResolutionPrecinctWidths,
                                                          int[][] BDResolutionPrecinctHeights)
                                                   throws java.lang.IllegalArgumentException
Find the best view window according to the client request view window and the logical target structure

Parameters:
xSize - definition in SIZParameters.xSize.
ySize - definition in SIZParameters.ySize.
zSize - definition in SIZParameters.zSize.
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
WTLevels - definition in CODParameters.WTLevels.
fsiz - definition in ViewWindowField.fsiz.
roff - definition in ViewWindowField.roff.
rsiz - definition in ViewWindowField.rsiz.
layers -
LCAchievedNumLayers - definition in CODParameters.numLayers.
BDResolutionPrecinctWidths - definition in CODParameters.precinctWidths.
BDResolutionPrecinctHeights - definition in CODParameters.precinctHeights.
Returns:
a ViewWindowField object with view window that best ajust to the requested parameters.
Throws:
java.lang.IllegalArgumentException

calculateResponseViewWindow

public static ViewWindowField calculateResponseViewWindow(ViewWindowField viewWindow,
                                                          SIZParameters sizParameters,
                                                          CODParameters codParameters)
                                                   throws java.lang.IllegalArgumentException
Find the best view window according to the client request view window and the logical target structure

Parameters:
viewWindow - definition in ViewWindowField.
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.
Returns:
a ViewWindowField object with view window that best ajust to the requested parameters.
Throws:
java.lang.IllegalArgumentException

numberOfPrecinctsWithinComponent

public static int[][] numberOfPrecinctsWithinComponent(int XOsize,
                                                       int YOsize,
                                                       int xSize,
                                                       int ySize,
                                                       int WTLevels,
                                                       int[] precinctWidths,
                                                       int[] precinctHeights)
Calculates the number of precincts within a fixed image component.

Parameters:
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
xSize - definition in SIZParameters.xSize.
ySize - definition in SIZParameters.ySize.
WTLevels - definition in CODParameters.WTLevels.
precinctWidths -
precinctHeights -
Returns:
numberOfPrecincts[0.....resolution levels][x | y]

numberOfPrecinctsWithinComponent

public static int[][] numberOfPrecinctsWithinComponent(SIZParameters sizParameters,
                                                       int WTLevels,
                                                       int[] precinctWidths,
                                                       int[] precinctHeights)
Calculates the number of precincts within a fixed image component for each resolution level.

Parameters:
sizParameters - definition in SIZParameters.
WTLevels - definition in CODParameters.WTLevels.
precinctWidths -
precinctHeights -
Returns:
numberOfPrecincts[0.....resolution levels][x | y]

numberOfPrecinctsPerComponent

public static int[][][] numberOfPrecinctsPerComponent(int XOsize,
                                                      int YOsize,
                                                      int xSize,
                                                      int ySize,
                                                      int[] WTLevels,
                                                      int[][] precinctWidths,
                                                      int[][] precinctHeights)
Calculates the number of precincts for each image component.

Parameters:
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
xSize - definition in SIZParameters.xSize.
ySize - definition in SIZParameters.ySize.
WTLevels - definition in CODParameters.WTLevels.
precinctWidths -
precinctHeights -
Returns:
numberOfPrecincts[component][0.....resolution levels][x | y]

numberOfPrecinctsPerComponent

public static int[][][] numberOfPrecinctsPerComponent(SIZParameters sizParameters,
                                                      CODParameters codParameters)
Calculates the number of precincts for each image component.

Parameters:
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.
Returns:
numberOfPrecincts[component][0.....resolution levels][x | y]

adjustViewWindowToPrecinctSizes

public static void adjustViewWindowToPrecinctSizes(int[] fsiz,
                                                   int[] roff,
                                                   int[] rsiz,
                                                   int components,
                                                   int ySize,
                                                   int xSize,
                                                   int XOsize,
                                                   int YOsize,
                                                   int[] WTLevels,
                                                   int[][] BDResolutionPrecinctWidths,
                                                   int[][] BDResolutionPrecinctHeights)
Adjusts the view window ajusting their boundaries to the precinct boundaries.

Parameters:
fsiz - definition in ViewWindowField.fsiz.
roff - definition in ViewWindowField.roff.
rsiz - definition in ViewWindowField.rsiz.
components -
ySize - definition in SIZParameters.ySize.
xSize - definition in SIZParameters.xSize.
XOsize - definition in SIZParameters.XOsize.
YOsize - definition in SIZParameters.YOsize.
WTLevels - definition in SIZParameters.xSize.
BDResolutionPrecinctWidths - definition in CODParameters.precinctWidths.
BDResolutionPrecinctHeights - definition in CODParameters.precinctHeights.

adjustViewWindowToPrecinctSizes

public static void adjustViewWindowToPrecinctSizes(ViewWindowField viewWindow,
                                                   SIZParameters sizParameters,
                                                   CODParameters codParameters)
Adjusts the view window ajusting their boundaries to the precinct boundaries.

Parameters:
viewWindow - definition in ViewWindowField.
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.

calculateRateDistortionAdjustment

public static int calculateRateDistortionAdjustment(int[] BCLCRateDistortionAdjustment,
                                                    int z,
                                                    int totalRLevels,
                                                    int rLevel,
                                                    int subband)
                                             throws WarningException
Calculate the rate disortion adjustment (depending on BCRateDistortionAdjustment) for a resolution level and subband.

Parameters:
BCLCRateDistortionAdjustment - rate distortion adjustment to be used for each component
z - image component
totalRLevels - the total number of resolution levels
rLevel - 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)
Returns:
log_2 of the multiplier (the number of bit that have to be shifted)
Throws:
WarningException - when rateDistortion adjustment type is unrecognized

calculateSubbandSizesBak

@Deprecated
public static int[][][] calculateSubbandSizesBak(int[] components,
                                                            int[] WTLevels,
                                                            int xSize,
                                                            int ySize)
Deprecated. 

Calculates the sizes of each subband for all resolution levels and components.

Parameters:
components -
WTLevels -
xSize -
ySize -
Returns:
a multi-dimensional array with the subband sizes. The first index is the component index, the second one is the resolution level, and the last one, 0 means the X dimension, and 1 the Y dimension.

calculateSubbandSizes

@Deprecated
public static int[][] calculateSubbandSizes(int WTLevels,
                                                       int xSize,
                                                       int ySize)
Deprecated. 

Calculates the sizes of the subbands for each resolution level.

Parameters:
WTLevels - the number of decomposition levels.
xSize - image with
ySize - image height
Returns:
a two-dimensional array with the sizes of the subbands. The first index is the resolution level and the second one, 0 means the X dimension and 1 the Y dimension.

calculateFirstPrecinctPerResolutionLevel

public static int[][][] calculateFirstPrecinctPerResolutionLevel(int numTiles,
                                                                 int numComponents,
                                                                 int[] WTLevels,
                                                                 int[][][] frameSizes,
                                                                 int[][] resolutionPrecinctWidths,
                                                                 int[][] resolutionPrecinctHeights)
Parameters:
numTiles -
numComponents -
WTLevels -
resolutionPrecinctWidths -
resolutionPrecinctHeights -
Returns:
a multidimensional array with the index of the first precinct in each tile-component-resolution level.

calculateFirstPrecinctPerResolutionLevel

public static int[][][] calculateFirstPrecinctPerResolutionLevel(SIZParameters sizParameters,
                                                                 CODParameters codParameters,
                                                                 int[][][] frameSizes)
Parameters:
sizParameters - definition in SIZParameters.
codParameters - definition in CODParameters.
frameSizes -
Returns:
a multidimensional array with the index of the first precinct in each tile-component-resolution level.


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)