Package jj2000.j2k.wavelet
Class WTFilterSpec
java.lang.Object
jj2000.j2k.wavelet.WTFilterSpec
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteThe identifier for "component default" specified filtersstatic final byteThe identifier for "main default" specified filtersstatic final byteThe identifier for "tile and component specific" specified filtersstatic final byteThe identifier for "tile specific default" specified filtersprotected byte[]The spec type for each tile and component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWTFilterSpec(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
Modifier and TypeMethodDescriptionbytegetKerSpecType(int n) Returns the type of specification for the filters in the specified component and tile.abstract intReturns the data type used by the filters in this object, as defined in the 'DataBlk' interface.
-
Field Details
-
FILTER_SPEC_MAIN_DEF
public static final byte FILTER_SPEC_MAIN_DEFThe identifier for "main default" specified filters- See Also:
-
FILTER_SPEC_COMP_DEF
public static final byte FILTER_SPEC_COMP_DEFThe identifier for "component default" specified filters- See Also:
-
FILTER_SPEC_TILE_DEF
public static final byte FILTER_SPEC_TILE_DEFThe identifier for "tile specific default" specified filters- See Also:
-
FILTER_SPEC_TILE_COMP
public static final byte FILTER_SPEC_TILE_COMPThe identifier for "tile and component specific" specified filters- See Also:
-
specValType
protected byte[] specValTypeThe 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 Details
-
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 Details
-
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:
-
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'.
-