Quiz: denoising by wavelet shrinkage

Short questions to test your understanding. Try each on paper first, then open the answer. Hard threshold: keep w if |w| > t, else 0. Soft threshold: \operatorname{sign}(w)\max(|w| - t, 0).


Q1. Why does thresholding wavelet coefficients separate signal from noise?

How are signal and noise spread over the coefficients?

The image is sparse: its energy sits in a few large coefficients. White noise, in an orthonormal basis, puts noise of the same standard deviation \sigma_n into every coefficient. So small coefficients are mostly noise and large ones mostly signal; killing the small ones removes most of the noise and little of the signal.


Q2. Soft-threshold (4, -0.5, -2.5, 1) with t = 1. Then hard-threshold it.

Soft subtracts t from the magnitude of the survivors.

Soft: (3, 0, -1.5, 0). Hard: (4, 0, -2.5, 0) (|1| = t is not above t, so it is killed).


Q3. Which threshold rule tends to leave isolated blips, and which lowers the contrast of edges? Why?

What happens to a noise coefficient just above t, and to a large signal coefficient?

Hard thresholding leaves blips: a noise coefficient just above t survives at full size and shows up as a small wavelet-shaped spot. Soft thresholding shrinks every survivor by t, including the large coefficients at edges, so edges lose contrast; a surviving noise coefficient becomes tiny instead of a blip.


Q4. What is the universal threshold for a 512 \times 512 image with \sigma_n = 10?

\sigma_n\sqrt{2\ln N} with N = 512^2 = 2^{18}.

\ln N = 18\ln 2 = 12.48, \sqrt{2 \cdot 12.48} = 5.00, so t \approx 50 grey levels.


Q5. Why is \sigma_n estimated with the median of the finest D band and not with its standard deviation?

What else is in that band besides noise?

The band also contains a few large signal coefficients at edges and corners. They inflate the standard deviation a lot, but barely move the median. For pure Gaussian noise the median of |w| is 0.6745\,\sigma_n, hence the divisor.


Q6. Why is the coarsest approximation (LL) not thresholded?

How large are LL coefficients compared with \sigma_n?

LL coefficients are averages over large blocks: large compared with \sigma_n, so they would survive anyway, and soft thresholding would only shift the brightness. The noise per pixel in the block average is small; the noise to remove sits in the details.


Q7. What is cycle spinning, and which artefact does it reduce?

The decimated transform is shift-variant.

Shift the image, denoise, shift back, and average over many shifts. Thresholding errors of the decimated transform are tied to its grid (blocks with Haar, small ringing patterns with Daubechies); for different shifts they fall in different places and average out.


Q8. (math) For which energy is soft thresholding with t = \lambda the exact minimiser, and why does the problem split into one scalar problem per coefficient?

Orthonormal transforms preserve distances.

\tfrac12\|y - x\|^2 + \lambda\|Wx\|_1 with W orthonormal. Since \|y - x\| = \|Wy - Wx\|, with c = Wx and w = Wy the energy is \sum_i\big(\tfrac12(w_i - c_i)^2 + \lambda|c_i|\big), a sum of independent terms; each is minimised by c_i = \operatorname{sign}(w_i)\max(|w_i| - \lambda, 0).