Class SynWTFilterInt

  • All Implemented Interfaces:
    Markers, WaveletFilter
    Direct Known Subclasses:
    SynWTFilterIntLift5x3

    public abstract class SynWTFilterInt
    extends SynWTFilter
    This extends the synthesis wavelet filter general definitions of SynWTFilter by adding methods that work for int data specifically. Implementations that work on int data should inherit from this class.

    See the SynWTFilter class for details such as normalization, how to split odd-length signals, etc.

    The advantage of using the specialized method is that no casts are performed.

    See Also:
    SynWTFilter
    • Constructor Detail

      • SynWTFilterInt

        public SynWTFilterInt()
    • Method Detail

      • synthetize_lpf

        public abstract void synthetize_lpf​(int[] lowSig,
                                            int lowOff,
                                            int lowLen,
                                            int lowStep,
                                            int[] highSig,
                                            int highOff,
                                            int highLen,
                                            int highStep,
                                            int[] outSig,
                                            int outOff,
                                            int outStep)
        A specific version of the synthetize_lpf() method that works on int data. See the general description of the synthetize_lpf() method in the SynWTFilter class for more details.
        Parameters:
        lowSig - This is the array that contains the low-pass input signal.
        lowOff - This is the index in lowSig of the first sample to filter.
        lowLen - This is the number of samples in the low-pass input signal to filter.
        lowStep - This is the step, or interleave factor, of the low-pass input signal samples in the lowSig array.
        highSig - This is the array that contains the high-pass input signal.
        highOff - This is the index in highSig of the first sample to filter.
        highLen - This is the number of samples in the high-pass input signal to filter.
        highStep - This is the step, or interleave factor, of the high-pass input signal samples in the highSig array.
        outSig - This is the array where the output signal is placed. It should be long enough to contain the output signal.
        outOff - This is the index in outSig of the element where to put the first output sample.
        outStep - This is the step, or interleave factor, of the output samples in the outSig array.
        See Also:
        SynWTFilter.synthetize_lpf(java.lang.Object, int, int, int, java.lang.Object, int, int, int, java.lang.Object, int, int)
      • synthetize_lpf

        public void synthetize_lpf​(Object lowSig,
                                   int lowOff,
                                   int lowLen,
                                   int lowStep,
                                   Object highSig,
                                   int highOff,
                                   int highLen,
                                   int highStep,
                                   Object outSig,
                                   int outOff,
                                   int outStep)
        The general version of the synthetize_lpf() method, it just calls the specialized version. See the description of the synthetize_lpf() method of the SynWTFilter class for more details.
        Specified by:
        synthetize_lpf in class SynWTFilter
        Parameters:
        lowSig - This is the array that contains the low-pass input signal. It must be an int[].
        lowOff - This is the index in lowSig of the first sample to filter.
        lowLen - This is the number of samples in the low-pass input signal to filter.
        lowStep - This is the step, or interleave factor, of the low-pass input signal samples in the lowSig array.
        highSig - This is the array that contains the high-pass input signal. Itmust be an int[].
        highOff - This is the index in highSig of the first sample to filter.
        highLen - This is the number of samples in the high-pass input signal to filter.
        highStep - This is the step, or interleave factor, of the high-pass input signal samples in the highSig array.
        outSig - This is the array where the output signal is placed. It should be and int[] and long enough to contain the output signal.
        outOff - This is the index in outSig of the element where to put the first output sample.
        outStep - This is the step, or interleave factor, of the output samples in the outSig array.
        See Also:
        SynWTFilter.synthetize_lpf(java.lang.Object, int, int, int, java.lang.Object, int, int, int, java.lang.Object, int, int)
      • synthetize_hpf

        public abstract void synthetize_hpf​(int[] lowSig,
                                            int lowOff,
                                            int lowLen,
                                            int lowStep,
                                            int[] highSig,
                                            int highOff,
                                            int highLen,
                                            int highStep,
                                            int[] outSig,
                                            int outOff,
                                            int outStep)
        A specific version of the synthetize_hpf() method that works on int data. See the general description of the synthetize_hpf() method in the SynWTFilter class for more details.
        Parameters:
        lowSig - This is the array that contains the low-pass input signal.
        lowOff - This is the index in lowSig of the first sample to filter.
        lowLen - This is the number of samples in the low-pass input signal to filter.
        lowStep - This is the step, or interleave factor, of the low-pass input signal samples in the lowSig array.
        highSig - This is the array that contains the high-pass input signal.
        highOff - This is the index in highSig of the first sample to filter.
        highLen - This is the number of samples in the high-pass input signal to filter.
        highStep - This is the step, or interleave factor, of the high-pass input signal samples in the highSig array.
        outSig - This is the array where the output signal is placed. It should be long enough to contain the output signal.
        outOff - This is the index in outSig of the element where to put the first output sample.
        outStep - This is the step, or interleave factor, of the output samples in the outSig array.
        See Also:
        SynWTFilter.synthetize_hpf(java.lang.Object, int, int, int, java.lang.Object, int, int, int, java.lang.Object, int, int)
      • synthetize_hpf

        public void synthetize_hpf​(Object lowSig,
                                   int lowOff,
                                   int lowLen,
                                   int lowStep,
                                   Object highSig,
                                   int highOff,
                                   int highLen,
                                   int highStep,
                                   Object outSig,
                                   int outOff,
                                   int outStep)
        The general version of the synthetize_hpf() method, it just calls the specialized version. See the description of the synthetize_hpf() method of the SynWTFilter class for more details.
        Specified by:
        synthetize_hpf in class SynWTFilter
        Parameters:
        lowSig - This is the array that contains the low-pass input signal. It must be an int[].
        lowOff - This is the index in lowSig of the first sample to filter.
        lowLen - This is the number of samples in the low-pass input signal to filter.
        lowStep - This is the step, or interleave factor, of the low-pass input signal samples in the lowSig array.
        highSig - This is the array that contains the high-pass input signal. Itmust be an int[].
        highOff - This is the index in highSig of the first sample to filter.
        highLen - This is the number of samples in the high-pass input signal to filter.
        highStep - This is the step, or interleave factor, of the high-pass input signal samples in the highSig array.
        outSig - This is the array where the output signal is placed. It should be and int[] and long enough to contain the output signal.
        outOff - This is the index in outSig of the element where to put the first output sample.
        outStep - This is the step, or interleave factor, of the output samples in the outSig array.
        See Also:
        SynWTFilter.synthetize_hpf(java.lang.Object, int, int, int, java.lang.Object, int, int, int, java.lang.Object, int, int)
      • getDataType

        public int getDataType()
        Returns the type of data on which this filter works, as defined in the DataBlk interface, which is always TYPE_INT for this class.
        Returns:
        The type of data as defined in the DataBlk interface.
        See Also:
        DataBlk