C# Class CSJ2K.j2k.wavelet.WTDecompSpec

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.

Show file Open project: cureos/csj2k

Public Methods

Method Description
WTDecompSpec ( int nc, int dec, int lev ) : System

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

getDecSpecType ( int n ) : byte

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

getDecompType ( int n ) : int

Returns the decomposition type to be used in component 'n' and tile 't'.

NOTE: The tile specific things are not supported yet

getLevels ( int n ) : int

Returns the decomposition number of levels in component 'n' and tile 't'.

NOTE: The tile specific things are not supported yet

setMainCompDefDecompType ( int n, int dec, int lev ) : void

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.

Method Details

WTDecompSpec() public method

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

public WTDecompSpec ( int nc, int dec, int lev ) : System
nc int The number of components /// ///
dec int The main default decomposition type /// ///
lev int The main default number of decomposition levels /// /// /// ///
return System

getDecSpecType() public method

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

public getDecSpecType ( int n ) : byte
n int The component index /// ///
return byte

getDecompType() public method

Returns the decomposition type to be used in component 'n' and tile 't'.

NOTE: The tile specific things are not supported yet

public getDecompType ( int n ) : int
n int The component index. /// ///
return int

getLevels() public method

Returns the decomposition number of levels in component 'n' and tile 't'.

NOTE: The tile specific things are not supported yet

public getLevels ( int n ) : int
n int The component index. /// ///
return int

setMainCompDefDecompType() public method

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.
public setMainCompDefDecompType ( int n, int dec, int lev ) : void
n int The component index /// ///
dec int The decomposition type. If negative then the main default is /// used. /// ///
lev int The number of levels. If negative then the main defaul is /// used. /// /// /// ///
return void