Quiz: linear deconvolution
Before this unit: Day 4: Image formation; Day 3: Bit depth and noise.
Short questions to test your understanding. Try each on paper first, then open the answer. Notation: G = HF + N per frequency; W is the restoration filter, \hat F = WG; SNR is signal power over noise power.
Q1. Without noise the inverse filter restores a blurred image perfectly. Name the two reasons it fails on real data.
What happens where |H| is small, and where it is zero?
Where |H| is small, the noise term N/H is amplified enormously and swamps the image. Where H = 0 (beyond the cut-off, or at the zeros of a motion blur) there is nothing to divide by: those frequencies are not in the data at all, and no filter can bring them back.
Q2. A truncated inverse with a large ε gives a blurred result with ripples next to every edge. Why the ripples?
What does a sharp cut in frequency look like in space?
The truncated inverse keeps frequencies up to a sharp boundary and sets the rest to zero. Multiplying by a sharp cut-off in frequency is convolving with a sinc-like function in space, whose side lobes appear as ripples (ringing) parallel to edges and around bright spots. Wiener and Tikhonov roll off smoothly and ring much less.
Q3. With SNR = 100, what does the Wiener filter multiply a frequency with H = 0.5 by? And one with H = 0.01?
W = H/(H^2 + 1/\mathrm{SNR}) for real H.
H = 0.5: 0.5/(0.25 + 0.01) = 1.92, almost the inverse (2). H = 0.01: 0.01/(0.0001 + 0.01) = 0.99, instead of the inverse’s 100: Wiener does not try to restore a frequency that is mostly noise.
Q4. A deconvolved image is covered in fine bright and dark dots. What went wrong, and which setting do you change?
Fine dots are high frequencies. Which ones are mostly noise?
Too little regularisation: the filter amplifies high frequencies where the data are mostly noise. Lower the SNR given to the Wiener filter, raise λ in Tikhonov, or raise ε in the truncated inverse.
Q5. After deconvolution every bright cell has a dark rim, darker than the background. Name a likely cause.
What happens if the restoration “undoes” more blur than there was?
The PSF used for restoration is wider than the true one: the filter over-sharpens, subtracting too much light around bright objects, which leaves dark halos (and ringing). A sharp frequency cut (truncated inverse) can also give rims. Check the PSF width first.
Q6. Tikhonov with the energy penalty and λ = 0.25 is applied to an image of a uniform grey area. What happens to its brightness? And with the roughness penalty?
A uniform image is pure frequency 0, where H = 1.
Energy penalty: the gain at f = 0 is 1/(1 + \lambda) = 0.8, so the grey level drops by 20 %. The roughness penalty (Laplacian) is zero for a constant image, so it does not penalise the mean: the gain at f = 0 is exactly 1 and the brightness is kept.
Q7. Why do FFT-based restorations often show stripes starting at the image border, and what is the usual fix?
What does the FFT assume lies beyond the right edge?
The FFT treats the image as periodic: the right edge is followed by the left edge. If they differ, the model sees a sharp edge at the border and the restoration rings there; also the real blur brought light in from outside the field, which the model attributes to the wrong place. Fix: pad the image, taper the padding smoothly to the mean, restore, then crop.
Q8. (math) Show that Tikhonov with the energy penalty, \min\|A\mathbf x - \mathbf g\|^2 + \lambda\|\mathbf x\|^2, gives the same per-frequency gain as the Wiener filter with a flat signal spectrum. What is the relation between λ and the SNR?
Normal equations, then diagonalise with the Fourier transform.
The normal equations are (A^\top A + \lambda I)\mathbf x = A^\top\mathbf g. For a circular blur, A is diagonal in the Fourier basis with entries H(f), and A^\top has H^*(f), so \hat X = H^* G/(|H|^2 + \lambda). Wiener with a flat spectrum is H^* G/(|H|^2 + S_n/S_f). They agree when \lambda = S_n/S_f = 1/\mathrm{SNR}.