| java.lang.Object jj2000.j2k.wavelet.WTDecompSpec
WTDecompSpec | public class WTDecompSpec (Code) | | This class holds the decomposition type to be used in each part of the
image; the default one, the component specific ones, the tile default ones
and the component-tile specific ones.
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.
|
Field Summary | |
final public static byte | DEC_SPEC_COMP_DEF | final public static byte | DEC_SPEC_MAIN_DEF | final public static byte | DEC_SPEC_TILE_COMP | final public static byte | DEC_SPEC_TILE_DEF | final public static int | WT_DECOMP_DYADIC ID for the dyadic wavelet tree decomposition (also called
"Mallat" in JPEG 2000): 0x00. | final public 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. | final public 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 Summary | |
public | 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. |
Method Summary | |
public byte | getDecSpecType(int n) Returns the type of specification for the decomposition in the
specified component and tile. | public int | getDecompType(int n) Returns the decomposition type to be used in component 'n' and tile
't'. | public int | getLevels(int n) Returns the decomposition number of levels in component 'n' and tile
't'. | public int | getMainDefDecompType() Returns the main default decomposition type. | public int | getMainDefLevels() Returns the main default decomposition number of levels. | public void | setMainCompDefDecompType(int n, int dec, int lev) Sets the "component main default" decomposition type and number of
levels for the specified component. |
DEC_SPEC_COMP_DEF | final public static byte DEC_SPEC_COMP_DEF(Code) | | The identifier for "component default" specified decomposition
|
DEC_SPEC_MAIN_DEF | final public static byte DEC_SPEC_MAIN_DEF(Code) | | The identifier for "main default" specified decomposition
|
DEC_SPEC_TILE_COMP | final public static byte DEC_SPEC_TILE_COMP(Code) | | The identifier for "tile and component specific" specified
decomposition
|
DEC_SPEC_TILE_DEF | final public static byte DEC_SPEC_TILE_DEF(Code) | | The identifier for "tile specific default" specified decomposition
|
WT_DECOMP_DYADIC | final public static int WT_DECOMP_DYADIC(Code) | | ID for the dyadic wavelet tree decomposition (also called
"Mallat" in JPEG 2000): 0x00.
|
WT_DECOMP_PACKET | final public static int WT_DECOMP_PACKET(Code) | | 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.
|
WT_DECOMP_SPACL | final public static int WT_DECOMP_SPACL(Code) | | 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.
|
WTDecompSpec | public WTDecompSpec(int nc, int dec, int lev)(Code) | | Constructs a new 'WTDecompSpec' for the specified number of components
and tiles, with the given main default decomposition type and number of
levels.
NOTE: The tile specific things are not supported yet
Parameters: nc - The number of components Parameters: nt - The number of tiles Parameters: dec - The main default decomposition type Parameters: lev - The main default number of decomposition levels |
getDecSpecType | public byte getDecSpecType(int n)(Code) | | Returns the type of specification for the decomposition in the
specified component and tile. The specification type is one of:
'DEC_SPEC_MAIN_DEF', 'DEC_SPEC_COMP_DEF', 'DEC_SPEC_TILE_DEF',
'DEC_SPEC_TILE_COMP'.
NOTE: The tile specific things are not supported yet
Parameters: n - The component index Parameters: t - The tile index, in raster scan order. The specification type for component 'n' and tile 't'. |
getDecompType | public int getDecompType(int n)(Code) | | Returns the decomposition type to be used in component 'n' and tile
't'.
NOTE: The tile specific things are not supported yet
Parameters: n - The component index. Parameters: t - The tile index, in raster scan order The decomposition type to be used. |
getLevels | public int getLevels(int n)(Code) | | Returns the decomposition number of levels in component 'n' and tile
't'.
NOTE: The tile specific things are not supported yet
Parameters: n - The component index. Parameters: t - The tile index, in raster scan order The decomposition number of levels. |
getMainDefDecompType | public int getMainDefDecompType()(Code) | | Returns the main default decomposition type.
The main default decomposition type. |
getMainDefLevels | public int getMainDefLevels()(Code) | | Returns the main default decomposition number of levels.
The main default decomposition number of levels. |
setMainCompDefDecompType | public void setMainCompDefDecompType(int n, int dec, int lev)(Code) | | Sets the "component main default" decomposition type and number of
levels for the specified component. Both 'dec' and 'lev' can not be
negative at the same time.
Parameters: n - The component index Parameters: dec - The decomposition type. If negative then the main default isused. Parameters: lev - The number of levels. If negative then the main defaul isused. |
|
|