jj2000.j2k.wavelet.analysis
Class AnWTFilterFloat
java.lang.Object
|
+--jj2000.j2k.wavelet.analysis.AnWTFilter
|
+--jj2000.j2k.wavelet.analysis.AnWTFilterFloat
- Direct Known Subclasses:
- AnWTFilterFloatLift9x7
- public abstract class AnWTFilterFloat
- extends AnWTFilter
This extends the analysis wavelet filter general definitions of
AnWTFilter by adding methods that work for float data
specifically. Implementations that work on float 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
Method Summary |
abstract void |
analyze_hpf(float[] inSig,
int inOff,
int inLen,
int inStep,
float[] lowSig,
int lowOff,
int lowStep,
float[] highSig,
int highOff,
int highStep)
A specific version of the analyze_hpf() method that works on int
data. |
void |
analyze_hpf(java.lang.Object inSig,
int inOff,
int inLen,
int inStep,
java.lang.Object lowSig,
int lowOff,
int lowStep,
java.lang.Object highSig,
int highOff,
int highStep)
The general version of the analyze_hpf() method, it just calls the
specialized version. |
abstract void |
analyze_lpf(float[] inSig,
int inOff,
int inLen,
int inStep,
float[] lowSig,
int lowOff,
int lowStep,
float[] highSig,
int highOff,
int highStep)
A specific version of the analyze_lpf() method that works on int
data. |
void |
analyze_lpf(java.lang.Object inSig,
int inOff,
int inLen,
int inStep,
java.lang.Object lowSig,
int lowOff,
int lowStep,
java.lang.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_FLOAT for this
class. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
AnWTFilterFloat
public AnWTFilterFloat()
analyze_lpf
public abstract void analyze_lpf(float[] inSig,
int inOff,
int inLen,
int inStep,
float[] lowSig,
int lowOff,
int lowStep,
float[] 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(java.lang.Object inSig,
int inOff,
int inLen,
int inStep,
java.lang.Object lowSig,
int lowOff,
int lowStep,
java.lang.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.
- Overrides:
- analyze_lpf in class AnWTFilter
- Parameters:
inSig
- This is the array that contains the input
signal. It must be an float[].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 float[].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 float[].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(float[] inSig,
int inOff,
int inLen,
int inStep,
float[] lowSig,
int lowOff,
int lowStep,
float[] 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(java.lang.Object inSig,
int inOff,
int inLen,
int inStep,
java.lang.Object lowSig,
int lowOff,
int lowStep,
java.lang.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.
- Overrides:
- analyze_hpf in class AnWTFilter
- Parameters:
inSig
- This is the array that contains the input
signal. It must be an float[].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 float[].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 float[].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_FLOAT for this
class.
- Returns:
- The type of data as defined in the DataBlk interface.
- See Also:
DataBlk