Class AnWTFilterFloatLift9x7
- All Implemented Interfaces:
WaveletFilter
See the AnWTFilter class for details such as normalization, how to split odd-length signals, etc. In particular, this method assumes that the low-pass coefficient is computed first.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatThe value of the first lifting step coefficientstatic final floatThe value of the second lifting step coefficientstatic final floatThe value of the fourth lifting step coefficientstatic final floatThe value of the third lifting step coefficientstatic final floatThe value of the high-pass subband normalization factorstatic final floatThe value of the low-pass subband normalization factorFields inherited from class jj2000.j2k.wavelet.analysis.AnWTFilter
OPT_PREFIXFields inherited from interface jj2000.j2k.wavelet.WaveletFilter
WT_FILTER_FLOAT_CONVOL, WT_FILTER_FLOAT_LIFT, WT_FILTER_INT_LIFT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanalyze_hpf(float[] inSig, int inOff, int inLen, int inStep, float[] lowSig, int lowOff, int lowStep, float[] highSig, int highOff, int highStep) An implementation of the analyze_hpf() method that works on int data, for the forward 9x7 wavelet transform using the lifting scheme.voidanalyze_lpf(float[] inSig, int inOff, int inLen, int inStep, float[] lowSig, int lowOff, int lowStep, float[] highSig, int highOff, int highStep) An implementation of the analyze_lpf() method that works on int data, for the forward 9x7 wavelet transform using the lifting scheme.booleanTests if the 'obj' object is the same filter as this one.intReturns the negative support of the high-pass analysis filter.intReturns the positive support of the high-pass analysis filter.intReturns the negative support of the low-pass analysis filter.intReturns the positive support of the low-pass analysis filter.intReturns the type of filter used according to the FilterTypes interface(W9x7).float[]Returns the time-reversed high-pass synthesis waveform of the filter, which is the high-pass filter.intReturns the implementation type of this filter, as defined in this class, such as WT_FILTER_INT_LIFT, WT_FILTER_FLOAT_LIFT, WT_FILTER_FLOAT_CONVOL.float[]Returns the time-reversed low-pass synthesis waveform of the filter, which is the low-pass filter.intReturns the negative support of the high-pass synthesis filter.intReturns the positive support of the high-pass synthesis filter.intReturns the negative support of the low-pass synthesis filter.intReturns the positive support of the low-pass synthesis filter.booleanReturns the reversibility of the filter.booleanisSameAsFullWT(int tailOvrlp, int headOvrlp, int inLen) Returns true if the wavelet filter computes or uses the same "inner" subband coefficient as the full frame wavelet transform, and false otherwise.toString()Debugging methodMethods inherited from class jj2000.j2k.wavelet.analysis.AnWTFilterFloat
analyze_hpf, analyze_lpf, getDataTypeMethods inherited from class jj2000.j2k.wavelet.analysis.AnWTFilter
getHPSynWaveForm, getLPSynWaveForm, getParameterInfo
-
Field Details
-
ALPHA
public static final float ALPHAThe value of the first lifting step coefficient- See Also:
-
BETA
public static final float BETAThe value of the second lifting step coefficient- See Also:
-
GAMMA
public static final float GAMMAThe value of the third lifting step coefficient- See Also:
-
DELTA
public static final float DELTAThe value of the fourth lifting step coefficient- See Also:
-
KL
public static final float KLThe value of the low-pass subband normalization factor- See Also:
-
KH
public static final float KHThe value of the high-pass subband normalization factor- See Also:
-
-
Constructor Details
-
AnWTFilterFloatLift9x7
public AnWTFilterFloatLift9x7()
-
-
Method Details
-
analyze_lpf
public void analyze_lpf(float[] inSig, int inOff, int inLen, int inStep, float[] lowSig, int lowOff, int lowStep, float[] highSig, int highOff, int highStep) An implementation of the analyze_lpf() method that works on int data, for the forward 9x7 wavelet transform using the lifting scheme. See the general description of the analyze_lpf() method in the AnWTFilter class for more details.The coefficients of the first lifting step are [ALPHA 1 ALPHA].
The coefficients of the second lifting step are [BETA 1 BETA].
The coefficients of the third lifting step are [GAMMA 1 GAMMA].
The coefficients of the fourth lifting step are [DELTA 1 DELTA].
The low-pass and high-pass subbands are normalized by respectively a factor of KL and a factor of KH
- Specified by:
analyze_lpfin classAnWTFilterFloat- Parameters:
inSig- This is the array that contains the input signal.inOff- This is the index in inSig of the first sample to filter.inLen- This is the number of samples in the input signal to filter.inStep- This is the step, or interleave factor, of the input signal samples in the inSig array.lowSig- This is the array where the low-pass output signal is placed.lowOff- This is the index in lowSig of the element where to put the first low-pass output sample.lowStep- This is the step, or interleave factor, of the low-pass output samples in the lowSig array.highSig- This is the array where the high-pass output signal is placed.highOff- This is the index in highSig of the element where to put the first high-pass output sample.highStep- This is the step, or interleave factor, of the high-pass output samples in the highSig array.- See Also:
-
analyze_hpf
public void analyze_hpf(float[] inSig, int inOff, int inLen, int inStep, float[] lowSig, int lowOff, int lowStep, float[] highSig, int highOff, int highStep) An implementation of the analyze_hpf() method that works on int data, for the forward 9x7 wavelet transform using the lifting scheme. See the general description of the analyze_hpf() method in the AnWTFilter class for more details.The coefficients of the first lifting step are [ALPHA 1 ALPHA].
The coefficients of the second lifting step are [BETA 1 BETA].
The coefficients of the third lifting step are [GAMMA 1 GAMMA].
The coefficients of the fourth lifting step are [DELTA 1 DELTA].
The low-pass and high-pass subbands are normalized by respectively a factor of KL and a factor of KH
- Specified by:
analyze_hpfin classAnWTFilterFloat- Parameters:
inSig- This is the array that contains the input signal.inOff- This is the index in inSig of the first sample to filter.inLen- This is the number of samples in the input signal to filter.inStep- This is the step, or interleave factor, of the input signal samples in the inSig array.lowSig- This is the array where the low-pass output signal is placed.lowOff- This is the index in lowSig of the element where to put the first low-pass output sample.lowStep- This is the step, or interleave factor, of the low-pass output samples in the lowSig array.highSig- This is the array where the high-pass output signal is placed.highOff- This is the index in highSig of the element where to put the first high-pass output sample.highStep- This is the step, or interleave factor, of the high-pass output samples in the highSig array.- See Also:
-
getAnLowNegSupport
public int getAnLowNegSupport()Returns the negative support of the low-pass analysis filter. That is the number of taps of the filter in the negative direction.- Returns:
- 2
-
getAnLowPosSupport
public int getAnLowPosSupport()Returns the positive support of the low-pass analysis filter. That is the number of taps of the filter in the negative direction.- Returns:
- The number of taps of the low-pass analysis filter in the positive direction
-
getAnHighNegSupport
public int getAnHighNegSupport()Returns the negative support of the high-pass analysis filter. That is the number of taps of the filter in the negative direction.- Returns:
- The number of taps of the high-pass analysis filter in the negative direction
-
getAnHighPosSupport
public int getAnHighPosSupport()Returns the positive support of the high-pass analysis filter. That is the number of taps of the filter in the negative direction.- Returns:
- The number of taps of the high-pass analysis filter in the positive direction
-
getSynLowNegSupport
public int getSynLowNegSupport()Returns the negative support of the low-pass synthesis filter. That is the number of taps of the filter in the negative direction.A MORE PRECISE DEFINITION IS NEEDED
- Returns:
- The number of taps of the low-pass synthesis filter in the negative direction
-
getSynLowPosSupport
public int getSynLowPosSupport()Returns the positive support of the low-pass synthesis filter. That is the number of taps of the filter in the negative direction.A MORE PRECISE DEFINITION IS NEEDED
- Returns:
- The number of taps of the low-pass synthesis filter in the positive direction
-
getSynHighNegSupport
public int getSynHighNegSupport()Returns the negative support of the high-pass synthesis filter. That is the number of taps of the filter in the negative direction.A MORE PRECISE DEFINITION IS NEEDED
- Returns:
- The number of taps of the high-pass synthesis filter in the negative direction
-
getSynHighPosSupport
public int getSynHighPosSupport()Returns the positive support of the high-pass synthesis filter. That is the number of taps of the filter in the negative direction.A MORE PRECISE DEFINITION IS NEEDED
- Returns:
- The number of taps of the high-pass synthesis filter in the positive direction
-
getLPSynthesisFilter
public float[] getLPSynthesisFilter()Returns the time-reversed low-pass synthesis waveform of the filter, which is the low-pass filter. This is the time-reversed impulse response of the low-pass synthesis filter. It is used to calculate the L2-norm of the synthesis basis functions for a particular subband (also called energy weight).The returned array may not be modified (i.e. a reference to the internal array may be returned by the implementation of this method).
- Specified by:
getLPSynthesisFilterin classAnWTFilter- Returns:
- The time-reversed low-pass synthesis waveform of the filter.
-
getHPSynthesisFilter
public float[] getHPSynthesisFilter()Returns the time-reversed high-pass synthesis waveform of the filter, which is the high-pass filter. This is the time-reversed impulse response of the high-pass synthesis filter. It is used to calculate the L2-norm of the synthesis basis functions for a particular subband (also called energy weight).The returned array may not be modified (i.e. a reference to the internal array may be returned by the implementation of this method).
- Specified by:
getHPSynthesisFilterin classAnWTFilter- Returns:
- The time-reversed high-pass synthesis waveform of the filter.
-
getImplType
public int getImplType()Returns the implementation type of this filter, as defined in this class, such as WT_FILTER_INT_LIFT, WT_FILTER_FLOAT_LIFT, WT_FILTER_FLOAT_CONVOL.- Returns:
- WT_FILTER_INT_LIFT.
-
isReversible
public boolean isReversible()Returns the reversibility of the filter. A filter is considered reversible if it is suitable for lossless coding.- Returns:
- true since the 9x7 is reversible, provided the appropriate rounding is performed.
-
isSameAsFullWT
public boolean isSameAsFullWT(int tailOvrlp, int headOvrlp, int inLen) Returns true if the wavelet filter computes or uses the same "inner" subband coefficient as the full frame wavelet transform, and false otherwise. In particular, for block based transforms with reduced overlap, this method should return false. The term "inner" indicates that this applies only with respect to the coefficient that are not affected by image boundaries processings such as symmetric extension, since there is not reference method for this.The result depends on the length of the allowed overlap when compared to the overlap required by the wavelet filter. It also depends on how overlap processing is implemented in the wavelet filter.
- Parameters:
tailOvrlp- This is the number of samples in the input signal before the first sample to filter that can be used for overlap.headOvrlp- This is the number of samples in the input signal after the last sample to filter that can be used for overlap.inLen- This is the lenght of the input signal to filter.The required number of samples in the input signal after the last sample depends on the length of the input signal.- Returns:
- true if both overlaps are greater than 2, and correct processing is applied in the analyze() method.
-
equals
Tests if the 'obj' object is the same filter as this one. Two filters are the same if the same filter code should be output for both filters by the encodeFilterCode() method.Currently the implementation of this method only tests if 'obj' is also of the class AnWTFilterFloatLift9x7
-
getFilterType
public int getFilterType()Returns the type of filter used according to the FilterTypes interface(W9x7).- Specified by:
getFilterTypein classAnWTFilter- Returns:
- The filter type.
- See Also:
-
toString
Debugging method
-