analyze_hpf Method (AnWTFilter)
In This Topic
Filters the input signal by this analysis filter, decomposing it in a low-pass and a high-pass signal. This method performs the filtering and the subsampling with the high pass first filtering convention.
The input signal resides in the inSig array. The index of the first sample to filter (i.e. that will generate the first high-pass output sample) is given by inOff. The number of samples to filter is given by inLen. This array must be of the same type as the one for which the particular implementation works with (which is returned by the getDataType() method).
The input signal can be interleaved with other signals in the same inSig array, and this is determined by the inStep argument. This means that the first sample of the input signal is inSig[inOff], the second is inSig[inOff+inStep], the third is inSig[inOff+2*inStep], and so on. Therefore if inStep is 1 there is no interleaving. This feature allows to filter columns of a 2-D signal, when it is stored in a line by line order in inSig, without having to copy the data, in this case the inStep argument should be the line width.
The low-pass output signal is placed in the lowSig array. The lowOff and lowStep arguments are analogous to the inOff and inStep ones, but they apply to the lowSig array. The lowSig array must be long enough to hold the low-pass output signal.
The high-pass output signal is placed in the highSig array. The highOff and highStep arguments are analogous to the inOff and inStep ones, but they apply to the highSig array. The highSig array must be long enough to hold the high-pass output signal.
Syntax
'Declaration
Public MustOverride Sub analyze_hpf( _
ByVal As Object, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Object, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Object, _
ByVal As Integer, _
ByVal As Integer _
)
public abstract void analyze_hpf(
object ,
int ,
int ,
int ,
object ,
int ,
int ,
object ,
int ,
int
)
Parameters
- inSig
- This is the array that contains the input signal. It must be of the correct type (e.g., it must be int[] if getDataType() returns TYPE_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. See above.
- lowSig
- This is the array where the low-pass output signal is placed. It must be of the same type as inSig and it should be long enough to contain the output signal.
- 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. See above.
- highSig
- This is the array where the high-pass output signal is placed. It must be of the same type as inSig and it should be long enough to contain the output signal.
- 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 above.
See Also
Reference
AnWTFilter Class
AnWTFilter Members
GrapeCity.Documents.Imaging.jpeg.jj2000.j2k.wavelet.IWaveletFilter.getDataType