Class 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
    • 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
        nt - The number of tiles
    • 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
        t - The tile index, in raster scan order.
        Returns:
        The specification type for component 'n' and tile 't'.