public class AnWTFilterSpec extends ModuleSpec
ModuleSpeccompDef, def, nComp, nTiles, SPEC_COMP_DEF, SPEC_DEF, SPEC_TILE_COMP, SPEC_TILE_DEF, SPEC_TYPE_COMP, SPEC_TYPE_TILE, SPEC_TYPE_TILE_COMP, specified, specType, specValType, tileCompVal, tileDef| Constructor and Description |
|---|
AnWTFilterSpec(int nt,
int nc,
byte type,
QuantTypeSpec qts,
J2KImageWriteParamJava wp,
String values)
Constructs a new 'AnWTFilterSpec' for the specified number of
components and tiles.
|
| Modifier and Type | Method and Description |
|---|---|
AnWTFilter[] |
getHFilters(int t,
int c)
Returns the horizontal analysis filters to be used in component 'n' and
tile 't'.
|
AnWTFilter[] |
getVFilters(int t,
int c)
Returns the vertical analysis filters to be used in component 'n' and
tile 't'.
|
int |
getWTDataType(int t,
int c)
Returns the data type used by the filters in this object, as defined in
the 'DataBlk' interface for specified tile-component.
|
boolean |
isReversible(int t,
int c)
Check the reversibility of filters contained is the given
tile-component.
|
String |
toString()
Debugging method
|
clone, getCompDef, getCopy, getDefault, getSpec, getSpecValType, getTileCompVal, getTileDef, isCompSpecified, isTileCompSpecified, isTileSpecified, parseIdx, rotate90, setCompDef, setDefault, setTileCompVal, setTileDefpublic AnWTFilterSpec(int nt,
int nc,
byte type,
QuantTypeSpec qts,
J2KImageWriteParamJava wp,
String values)
nt - The number of tilesnc - The number of componentstype - the type of the specification module i.e. tile specific,
component specific or both.qts - Quantization specificationspublic int getWTDataType(int t,
int c)
t - Tile indexc - Component indexDataBlkpublic AnWTFilter[] getHFilters(int t, int c)
The horizontal analysis filters are returned in an array of AnWTFilter. Each element contains the horizontal filter for each resolution level starting with resolution level 1 (i.e. the analysis filter to go from resolution level 1 to resolution level 0). If there are less elements than the maximum resolution level, then the last element is assumed to be repeated.
t - The tile index, in raster scan orderc - The component index.public AnWTFilter[] getVFilters(int t, int c)
The vertical analysis filters are returned in an array of AnWTFilter. Each element contains the vertical filter for each resolution level starting with resolution level 1 (i.e. the analysis filter to go from resolution level 1 to resolution level 0). If there are less elements than the maximum resolution level, then the last element is assumed to be repeated.
t - The tile index, in raster scan orderc - The component index.public boolean isReversible(int t,
int c)
t - The index of the tilec - The index of the componentCopyright © 2015–2022 SCIFIO. All rights reserved.