C09ACF returns the details of the chosen three-dimensional discrete wavelet filter. For a chosen mother wavelet, discrete wavelet transform type (single-level or multi-level DWT) and end extension method, this routine returns the maximum number of levels of resolution (appropriate to a multi-level transform), the filter length, the total number of coefficients and the number of wavelet coefficients in the second and third dimensions for the single-level case. This routine must be called before any of the three-dimensional transform routines in this chapter.
Three-dimensional discrete wavelet transforms (DWT) are characterised by the mother wavelet, the end extension method and whether multiresolution analysis is to be performed. For the selected combination of choices for these three characteristics, and for given dimensions (
) of data array
, C09ACF returns the dimension details for the transform determined by this combination. The dimension details are:
, the maximum number of levels of resolution that would be computed were a multi-level DWT applied;
, the filter length;
the total number of wavelet coefficients (over all levels in the multi-level DWT case);
, the number of coefficients in the second dimension for a single-level DWT; and
, the number of coefficients in the third dimension for a single-level DWT. These values are also stored in the communication array
ICOMM, as are the input choices, so that they may be conveniently communicated to the three-dimensional transform routines in this chapter.
None.
- 1: WAVNAM – CHARACTER(*)Input
On entry: the name of the mother wavelet. See the
C09 Chapter Introduction for details.
- Haar wavelet.
- , where
- Daubechies wavelet with vanishing moments ( coefficients). For example, is the name for the Daubechies wavelet with vanishing moments ( coefficients).
- ., where . can be one of 1.1, 1.3, 1.5, 2.2, 2.4, 2.6, 2.8, 3.1, 3.3, 3.5 or 3.7
- Biorthogonal wavelet of order .. For example is the name for the biorthogonal wavelet of order .
Constraint:
, , , , , , , , , , , , , , , , , , , or .
- 2: WTRANS – CHARACTER(1)Input
On entry: the type of discrete wavelet transform that is to be applied.
- Single-level decomposition or reconstruction by discrete wavelet transform.
- Multiresolution, by a multi-level DWT or its inverse.
Constraint:
or .
- 3: MODE – CHARACTER(1)Input
On entry: the end extension method.
- Periodic end extension.
- Half-point symmetric end extension.
- Whole-point symmetric end extension.
- Zero end extension.
Constraint:
, , or .
- 4: M – INTEGERInput
On entry: the number of elements, , in the first dimension (number of rows of each two-dimensional frame) of the input data, .
Constraint:
.
- 5: N – INTEGERInput
On entry: the number of elements, , in the second dimension (number of columns of each two-dimensional frame) of the input data, .
Constraint:
.
- 6: FR – INTEGERInput
On entry: the number of elements, , in the third dimension (number of frames) of the input data, .
Constraint:
.
- 7: NWL – INTEGEROutput
-
On exit: the maximum number of levels of resolution,
, that can be computed if a multi-level discrete wavelet transform is applied (
). It is such that
, for
an integer.
If
,
NWL is not set.
- 8: NF – INTEGEROutput
On exit: the filter length, , for the supplied mother wavelet. This is used to determine the number of coefficients to be generated by the chosen transform.
- 9: NWCT – INTEGEROutput
-
On exit: the total number of wavelet coefficients, , that will be generated. When the number of rows required (i.e., the first dimension of each two-dimensional frame) in each of the output coefficient arrays can be calculated as . When the length of the array used to store all of the coefficient matrices must be at least .
- 10: NWCN – INTEGEROutput
On exit: for a single-level transform (), the number of coefficients that would be generated in the second dimension, , for each coefficient type. For a multi-level transform () this is set to .
- 11: NWCFR – INTEGEROutput
On exit: for a single-level transform (), the number of coefficients that would be generated in the third dimension, , for each coefficient type. For a multi-level transform () this is set to .
- 12: ICOMM() – INTEGER arrayCommunication Array
On exit: contains details of the wavelet transform and the problem dimension which is to be communicated to the two-dimensional discrete transform routines in this chapter.
- 13: IFAIL – INTEGERInput/Output
-
On entry:
IFAIL must be set to
,
. If you are unfamiliar with this parameter you should refer to
Section 3.3 in the Essential Introduction for details.
For environments where it might be inappropriate to halt program execution when an error is detected, the value
is recommended. If the output of error messages is undesirable, then the value
is recommended. Otherwise, if you are not familiar with this parameter, the recommended value is
.
When the value is used it is essential to test the value of IFAIL on exit.
On exit:
unless the routine detects an error or a warning has been flagged (see
Section 6).
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
X04AAF).
Not applicable.
None.