ucar.jpeg.jj2000.j2k.wavelet.synthesis
Class SynWTFilterInt

java.lang.Object
  extended by ucar.jpeg.jj2000.j2k.wavelet.synthesis.SynWTFilter
      extended by ucar.jpeg.jj2000.j2k.wavelet.synthesis.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

Field Summary
 
Fields inherited from interface ucar.jpeg.jj2000.j2k.wavelet.WaveletFilter
WT_FILTER_FLOAT_CONVOL, WT_FILTER_FLOAT_LIFT, WT_FILTER_INT_LIFT
 
Fields inherited from interface ucar.jpeg.jj2000.j2k.codestream.Markers
COC, COD, COM, CRG, EOC, EPH, EPH_LENGTH, ERS_SEG_SYMBOLS, ERS_SOP, MAX_COMP_BITDEPTH, MAX_LPPM, MAX_LPPT, PLM, PLT, POC, PPM, PPT, PRECINCT_PARTITION_DEF_SIZE, QCC, QCD, RCOM_GEN_USE, RGN, RSIZ_BASELINE, RSIZ_ER_FLAG, RSIZ_ROI, SCOX_HOR_CB_PART, SCOX_PRECINCT_PARTITION, SCOX_USE_EPH, SCOX_USE_SOP, SCOX_VER_CB_PART, SIZ, SOC, SOD, SOP, SOP_LENGTH, SOT, SQCX_EXP_MASK, SQCX_EXP_SHIFT, SQCX_GB_MSK, SQCX_GB_SHIFT, SQCX_NO_QUANTIZATION, SQCX_SCALAR_DERIVED, SQCX_SCALAR_EXPOUNDED, SRGN_IMPLICIT, SSIZ_DEPTH_BITS, TLM
 
Constructor Summary
SynWTFilterInt()
           
 
Method Summary
 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.
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.
 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.
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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.jpeg.jj2000.j2k.wavelet.WaveletFilter
getAnHighNegSupport, getAnHighPosSupport, getAnLowNegSupport, getAnLowPosSupport, getImplType, getSynHighNegSupport, getSynHighPosSupport, getSynLowNegSupport, getSynLowPosSupport, isReversible, isSameAsFullWT
 

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:
jj2000.j2k.image.DataBlk


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.