+− Contents

1 Purpose

C09EDF computes the inverse two-dimensional multi-level discrete wavelet transform (DWT). This routine reconstructs data from (possibly filtered or otherwise manipulated) wavelet transform coefficients calculated by C09ECF from an original input matrix. The initialization routine C09ABF must be called first to set up the DWT options.

2 Specification

3 Description

C09EDF performs the inverse operation of C09ECF. That is, given a set of wavelet coefficients, computed by C09ECF using a DWT as set up by the initialization routine C09ABF, on a real matrix, A, C09EDF will reconstruct A. The reconstructed matrix is referred to as B in the following since it will not be identical to A when the DWT coefficients have been filtered or otherwise manipulated prior to reconstruction. If the original input matrix is level 0, then it is possible to terminate reconstruction at a higher level by specifying fewer than the number of levels used in the call to C09ECF. This results in a partial reconstruction.

4 References

None.

5 Parameters

1: NWL – INTEGERInput

On entry: the number, nl, of levels to be used in the inverse multi-level transform.

Constraint:
1≤NWL≤nfwd, where nfwd is the value used in a preceding call to C09ECF.

2: LENC – INTEGERInput

On entry: the dimension of the array C as declared in the (sub)program from which C09EDF is called.

Constraint:
LENC≥nct, where nct is the total number of coefficients that correspond to a transform with nfwd levels and is unchanged from the preceding call to C09ECF.

On entry: the number of elements, m, in the first dimension of the reconstructed matrix B. For a full reconstruction of nfwd levels this is the same as parameter M in C09ECF. For a partial reconstruction of nl<nfwd levels this will be equal to DWTLVMnl+1 as returned from C09ECF.

5: N – INTEGERInput

On entry: the number of elements, n, in the second dimension of the reconstructed matrix B. For a full reconstruction of nfwd levels this is the same as parameter N in C09ECF. For a partial reconstruction of nl<nfwd levels this will be equal to DWTLVNnl+1 as returned from C09ECF.

On exit: the m by n reconstructed matrix, B, based on the input multi-level wavelet transform coefficients and the transform options supplied to the initialization routine C09ABF.

7: LDB – INTEGERInput

On entry: the first dimension of the array B as declared in the (sub)program from which C09EDF is called.

Constraint:
LDB≥M.

8: ICOMM(180) – INTEGER arrayCommunication Array

On entry: contains details of the discrete wavelet transform and the problem dimension as setup in the call to the initialization routine C09ABF.

9: IFAIL – INTEGERInput/Output

On entry: IFAIL must be set to 0, -1​ or ​1. 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 -1​ or ​1 is recommended. If the output of error messages is undesirable, then the value 1 is recommended. Otherwise, if you are not familiar with this parameter, the recommended value is 0. When the value -1​ or ​1 is used it is essential to test the value of IFAIL on exit.

On exit: IFAIL=0 unless the routine detects an error or a warning has been flagged (see Section 6).

6 Error Indicators and Warnings

If on entry IFAIL=0 or -1, explanatory error messages are output on the current error message unit (as defined by X04AAF).

Errors or warnings detected by the routine:

IFAIL=1

On entry,

NWL<1,

or

NWL> the number of levels used in the computation of the wavelet coefficients by a call to C09ECF.

IFAIL=2

On entry,

LDB<M.

IFAIL=3

On entry, LENC is too small. LENC must be at least the number of wavelet coefficients required for a transform operating on NWL levels. If NWL=lmax, the maximum number of levels as returned in NWL by the initial call to C09ABF, then LENC must be at least nct, the value returned in NWCT by the same call to C09ABF.