The DWT2D function implements the Mallat algorithm (an iterate algorithm in the Discrete Wavelet Transform field) on 2-dimensional matrixes 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.)
This is a typical DWT2D use case:
- Apply DWT2D to the original data to create the approximate coefficients of the matrixes 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 matrixes and compare them with their original counterparts.