The DWT2D function implements Mallat's algorithm (an iterate algorithm in the Discrete Wavelet Transform field) on 2-dimensional matrices and applies wavelet transform on multiple sequences simultaneously.
The input is a set of sequences. Typically, each sequence is a matrix that contains a position in 2-dimensional space (y and x indexes or coordinates) and its corresponding values. You specify the wavelet name or wavelet filter table, transform level, and (optionally) extension mode. The function returns the transformed sequences in Hilbert space with the corresponding component identifiers and indices. (The transformation is also called the decomposition.)
A typical DWT2D use case is:
- Apply DWT2D to the original data to generate the approximate coefficients of the matrices and the corresponding metadata.
- If desired, filter the coefficients by methods appropriate for the objects (for example, minimum threshold or top n coefficients).
- From the approximate or filtered coefficients, reconstruct the matrices and compare them with their original counterparts.