How it Works
The Discrete Wavelet Transform (DWT) applies a pair of filters — a low-pass scaling filter h and a high-pass wavelet filter g — to the signal, then downsamples by 2. Each level splits the previous approximation into a coarser approximation (cA) and a detail band (cD). This is Mallat's fast pyramid algorithm.
The scalogram visualises wavelet coefficient magnitude as a heatmap over time and scale (level). The reconstruction (IDWT) is exact when all coefficients are retained.
Frequently Asked Questions
What is the Discrete Wavelet Transform?
The Discrete Wavelet Transform (DWT) decomposes a signal into approximation and detail coefficients at multiple resolution levels using scaling and wavelet functions.
How does the Haar wavelet work?
The Haar wavelet uses a simple averaging (low-pass) and differencing (high-pass) filter pair. It is the simplest orthogonal wavelet and splits the signal into coarse approximations and fine details.
What are Daubechies wavelets?
Daubechies wavelets (db2, db4, etc.) are compactly supported orthogonal wavelets with vanishing moments. They provide smoother decomposition than Haar, at the cost of slight phase shift.
What is multi-resolution analysis?
Multi-resolution analysis (MRA) decomposes a signal into nested subspaces at different scales, allowing simultaneous time-frequency localisation — something the Fourier transform cannot provide.
What is a scalogram?
A scalogram is a 2D plot of wavelet coefficient energy as a function of time and scale. Bright regions indicate large wavelet coefficients, revealing time-localised frequency content.
What is the difference between DWT and STFT?
The Short-Time Fourier Transform (STFT) uses a fixed window, giving uniform time-frequency resolution. The DWT uses variable-width wavelets: high frequency → narrow time window, low frequency → wide window.
What are vanishing moments?
A wavelet with N vanishing moments is orthogonal to polynomials of degree up to N-1. More vanishing moments mean smoother wavelets that compress smooth signals more efficiently.
How is the DWT used in JPEG 2000?
JPEG 2000 uses the Cohen-Daubechies-Feauveau 9/7 biorthogonal wavelet (CDF 9/7) for lossy compression, and the 5/3 wavelet for lossless compression, replacing the DCT used in JPEG.
What is coefficient thresholding?
Thresholding sets small wavelet detail coefficients to zero. Hard thresholding zeros all coefficients below a threshold; soft thresholding also shrinks large coefficients. Used for denoising.
Can the DWT be inverted exactly?
Yes. The Inverse DWT (IDWT) reconstructs the original signal exactly from approximation and detail coefficients using the conjugate mirror filters, provided no coefficients have been discarded or quantised.