Package jj2000.j2k.wavelet.analysis
Class AnWTFilterInt
- java.lang.Object
-
- jj2000.j2k.wavelet.analysis.AnWTFilter
-
- jj2000.j2k.wavelet.analysis.AnWTFilterInt
-
- All Implemented Interfaces:
WaveletFilter
- Direct Known Subclasses:
AnWTFilterIntLift5x3
public abstract class AnWTFilterInt extends AnWTFilter
This extends the analysis wavelet filter general definitions of AnWTFilter by adding methods that work for int data specifically. Implementations that work on int data should inherit from this class.See the AnWTFilter 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:
AnWTFilter
-
-
Field Summary
-
Fields inherited from class jj2000.j2k.wavelet.analysis.AnWTFilter
OPT_PREFIX
-
Fields inherited from interface jj2000.j2k.wavelet.WaveletFilter
WT_FILTER_FLOAT_CONVOL, WT_FILTER_FLOAT_LIFT, WT_FILTER_INT_LIFT
-
-
Constructor Summary
Constructors Constructor Description AnWTFilterInt()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
analyze_hpf(int[] inSig, int inOff, int inLen, int inStep, int[] lowSig, int lowOff, int lowStep, int[] highSig, int highOff, int highStep)
A specific version of the analyze_hpf() method that works on int data.void
analyze_hpf(Object inSig, int inOff, int inLen, int inStep, Object lowSig, int lowOff, int lowStep, Object highSig, int highOff, int highStep)
The general version of the analyze_hpf() method, it just calls the specialized version.abstract void
analyze_lpf(int[] inSig, int inOff, int inLen, int inStep, int[] lowSig, int lowOff, int lowStep, int[] highSig, int highOff, int highStep)
A specific version of the analyze_lpf() method that works on int data.void
analyze_lpf(Object inSig, int inOff, int inLen, int inStep, Object lowSig, int lowOff, int lowStep, Object highSig, int highOff, int highStep)
The general version of the analyze_lpf() method, it just calls the specialized version.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.-
Methods inherited from class jj2000.j2k.wavelet.analysis.AnWTFilter
getFilterType, getHPSynthesisFilter, getHPSynWaveForm, getLPSynthesisFilter, getLPSynWaveForm, getParameterInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jj2000.j2k.wavelet.WaveletFilter
getAnHighNegSupport, getAnHighPosSupport, getAnLowNegSupport, getAnLowPosSupport, getImplType, getSynHighNegSupport, getSynHighPosSupport, getSynLowNegSupport, getSynLowPosSupport, isReversible, isSameAsFullWT
-
-
-
-
Method Detail
-
analyze_lpf
public abstract void analyze_lpf(int[] inSig, int inOff, int inLen, int inStep, int[] lowSig, int lowOff, int lowStep, int[] highSig, int highOff, int highStep)
A specific version of the analyze_lpf() method that works on int data. See the general description of the analyze_lpf() method in the AnWTFilter class for more details.- 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:
AnWTFilter.analyze_lpf(java.lang.Object, int, int, int, java.lang.Object, int, int, java.lang.Object, int, int)
-
analyze_lpf
public void analyze_lpf(Object inSig, int inOff, int inLen, int inStep, Object lowSig, int lowOff, int lowStep, Object highSig, int highOff, int highStep)
The general version of the analyze_lpf() method, it just calls the specialized version. See the description of the analyze_lpf() method of the AnWTFilter class for more details.- Specified by:
analyze_lpf
in classAnWTFilter
- Parameters:
inSig
- This is the array that contains the input signal. It must be an int[].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. It must be an int[].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. It must be an int[].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:
AnWTFilter.analyze_lpf(java.lang.Object, int, int, int, java.lang.Object, int, int, java.lang.Object, int, int)
-
analyze_hpf
public abstract void analyze_hpf(int[] inSig, int inOff, int inLen, int inStep, int[] lowSig, int lowOff, int lowStep, int[] highSig, int highOff, int highStep)
A specific version of the analyze_hpf() method that works on int data. See the general description of the analyze_hpf() method in the AnWTFilter class for more details.- 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:
AnWTFilter.analyze_hpf(java.lang.Object, int, int, int, java.lang.Object, int, int, java.lang.Object, int, int)
-
analyze_hpf
public void analyze_hpf(Object inSig, int inOff, int inLen, int inStep, Object lowSig, int lowOff, int lowStep, Object highSig, int highOff, int highStep)
The general version of the analyze_hpf() method, it just calls the specialized version. See the description of the analyze_hpf() method of the AnWTFilter class for more details.- Specified by:
analyze_hpf
in classAnWTFilter
- Parameters:
inSig
- This is the array that contains the input signal. It must be an int[].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. It must be an int[].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. It must be an int[].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:
AnWTFilter.analyze_hpf(java.lang.Object, int, int, int, java.lang.Object, 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
-
-