Package jj2000.j2k.wavelet
Class WTFilterSpec
- java.lang.Object
-
- jj2000.j2k.wavelet.WTFilterSpec
-
public abstract class WTFilterSpec extends Object
This is the generic class from which the ones that hold the analysis or synthesis filters to be used in each part of the image derive. See AnWTFilterSpec and SynWTFilterSpec.The filters to use are defined by a hierarchy. The hierarchy is:
- Tile and component specific filters
- Tile specific default filters
- Component main default filters
- Main default filters
At the moment tiles are not supported by this class.
- See Also:
AnWTFilterSpec
,SynWTFilterSpec
-
-
Field Summary
Fields Modifier and Type Field Description static byte
FILTER_SPEC_COMP_DEF
The identifier for "component default" specified filtersstatic byte
FILTER_SPEC_MAIN_DEF
The identifier for "main default" specified filtersstatic byte
FILTER_SPEC_TILE_COMP
The identifier for "tile and component specific" specified filtersstatic byte
FILTER_SPEC_TILE_DEF
The identifier for "tile specific default" specified filtersprotected byte[]
specValType
The spec type for each tile and component.
-
Constructor Summary
Constructors Modifier Constructor Description protected
WTFilterSpec(int nc)
Constructs a 'WTFilterSpec' object, initializing all the components and tiles to the 'FILTER_SPEC_MAIN_DEF' spec type, for the specified number of components and tiles.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description byte
getKerSpecType(int n)
Returns the type of specification for the filters in the specified component and tile.abstract int
getWTDataType()
Returns the data type used by the filters in this object, as defined in the 'DataBlk' interface.
-
-
-
Field Detail
-
FILTER_SPEC_MAIN_DEF
public static final byte FILTER_SPEC_MAIN_DEF
The identifier for "main default" specified filters- See Also:
- Constant Field Values
-
FILTER_SPEC_COMP_DEF
public static final byte FILTER_SPEC_COMP_DEF
The identifier for "component default" specified filters- See Also:
- Constant Field Values
-
FILTER_SPEC_TILE_DEF
public static final byte FILTER_SPEC_TILE_DEF
The identifier for "tile specific default" specified filters- See Also:
- Constant Field Values
-
FILTER_SPEC_TILE_COMP
public static final byte FILTER_SPEC_TILE_COMP
The identifier for "tile and component specific" specified filters- See Also:
- Constant Field Values
-
specValType
protected byte[] specValType
The spec type for each tile and component. The first index is the component index, the second is the tile index. NOTE: The tile specific things are not supported yet.
-
-
Constructor Detail
-
WTFilterSpec
protected WTFilterSpec(int nc)
Constructs a 'WTFilterSpec' object, initializing all the components and tiles to the 'FILTER_SPEC_MAIN_DEF' spec type, for the specified number of components and tiles.NOTE: The tile specific things are not supported yet
- Parameters:
nc
- The number of components
-
-
Method Detail
-
getWTDataType
public abstract int getWTDataType()
Returns the data type used by the filters in this object, as defined in the 'DataBlk' interface.- Returns:
- The data type of the filters in this object
- See Also:
DataBlk
-
getKerSpecType
public byte getKerSpecType(int n)
Returns the type of specification for the filters in the specified component and tile. The specification type is one of: 'FILTER_SPEC_MAIN_DEF', 'FILTER_SPEC_COMP_DEF', 'FILTER_SPEC_TILE_DEF', 'FILTER_SPEC_TILE_COMP'.NOTE: The tile specific things are not supported yet
- Parameters:
n
- The component index- Returns:
- The specification type for component 'n' and tile 't'.
-
-