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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
    The identifier for "component default" specified filters
    static final byte
    The identifier for "main default" specified filters
    static final byte
    The identifier for "tile and component specific" specified filters
    static final byte
    The identifier for "tile specific default" specified filters
    protected byte[]
    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

    Modifier and Type
    Method
    Description
    byte
    Returns the type of specification for the filters in the specified component and tile.
    abstract int
    Returns the data type used by the filters in this object, as defined in the 'DataBlk' interface.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FILTER_SPEC_MAIN_DEF

      public static final byte FILTER_SPEC_MAIN_DEF
      The identifier for "main default" specified filters
      See Also:
    • FILTER_SPEC_COMP_DEF

      public static final byte FILTER_SPEC_COMP_DEF
      The identifier for "component default" specified filters
      See Also:
    • FILTER_SPEC_TILE_DEF

      public static final byte FILTER_SPEC_TILE_DEF
      The identifier for "tile specific default" specified filters
      See Also:
    • FILTER_SPEC_TILE_COMP

      public static final byte FILTER_SPEC_TILE_COMP
      The identifier for "tile and component specific" specified filters
      See Also:
    • 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 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'.