public class WTDecompSpec extends Object
The decomposition type identifiers values are the same as in the codestream.
The hierarchy is:
 - Tile and component specific decomposition
 - Tile specific default decomposition
 - Component main default decomposition
 - Main default decomposition
 
At the moment tiles are not supported by this class.
| Modifier and Type | Field and Description | 
|---|---|
static byte | 
DEC_SPEC_COMP_DEF
The identifier for "component default" specified decomposition 
 | 
static byte | 
DEC_SPEC_MAIN_DEF
The identifier for "main default" specified decomposition 
 | 
static byte | 
DEC_SPEC_TILE_COMP
The identifier for "tile and component specific" specified
        decomposition 
 | 
static byte | 
DEC_SPEC_TILE_DEF
The identifier for "tile specific default" specified decomposition 
 | 
static int | 
WT_DECOMP_DYADIC
ID for the dyadic wavelet tree decomposition (also called
 "Mallat" in JPEG 2000): 0x00. 
 | 
static int | 
WT_DECOMP_PACKET
ID for the PACKET (as defined in JPEG 2000) wavelet tree
 decomposition (2 levels of decomposition in the high bands and
 some specified number for the lowest LL band): 0x01. 
 | 
static int | 
WT_DECOMP_SPACL
ID for the SPACL (as defined in JPEG 2000) wavelet tree
 decomposition (1 level of decomposition in the high bands and
 some specified number for the lowest LL band): 0x02. 
 | 
| Constructor and Description | 
|---|
WTDecompSpec(int nc,
            int dec,
            int lev)
Constructs a new 'WTDecompSpec' for the specified number of components
 and tiles, with the given main default decomposition type and number of 
 levels. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getDecompType(int n)
Returns the decomposition type to be used in component 'n' and tile
 't'. 
 | 
byte | 
getDecSpecType(int n)
Returns the type of specification for the decomposition in the
 specified component and tile. 
 | 
int | 
getLevels(int n)
Returns the decomposition number of levels in component 'n' and tile
 't'. 
 | 
int | 
getMainDefDecompType()
Returns the main default decomposition type. 
 | 
int | 
getMainDefLevels()
Returns the main default decomposition number of levels. 
 | 
void | 
setMainCompDefDecompType(int n,
                        int dec,
                        int lev)
Sets the "component main default" decomposition type and number of
 levels for the specified component. 
 | 
public static final int WT_DECOMP_DYADIC
public static final int WT_DECOMP_SPACL
public static final int WT_DECOMP_PACKET
public static final byte DEC_SPEC_MAIN_DEF
public static final byte DEC_SPEC_COMP_DEF
public static final byte DEC_SPEC_TILE_DEF
public static final byte DEC_SPEC_TILE_COMP
public WTDecompSpec(int nc,
            int dec,
            int lev)
NOTE: The tile specific things are not supported yet
nc - The number of componentsnt - The number of tilesdec - The main default decomposition typelev - The main default number of decomposition levelspublic void setMainCompDefDecompType(int n,
                            int dec,
                            int lev)
n - The component indexdec - The decomposition type. If negative then the main default is
 used.lev - The number of levels. If negative then the main defaul is
 used.public byte getDecSpecType(int n)
NOTE: The tile specific things are not supported yet
n - The component indext - The tile index, in raster scan order.public int getMainDefDecompType()
public int getMainDefLevels()
public int getDecompType(int n)
NOTE: The tile specific things are not supported yet
n - The component index.t - The tile index, in raster scan orderpublic int getLevels(int n)
NOTE: The tile specific things are not supported yet
n - The component index.t - The tile index, in raster scan orderCopyright © 2014 Open Microscopy Environment