Quiz: running the model backwards
Before this unit: Resolution, sampling and measuring the PSF (previous unit); Day 1: Images, filters and frequencies.
See also: Day 3: Bit depth and noise; Day 2: Edges, blobs and ridges.
Short questions to test your understanding. Try each on paper first, then open the answer. Notation: G = FH + N (image, object, OTF, noise in frequency space); the inverse filter is \hat F = G/H.
Q1. Without noise, the inverse filter recovers a blurred image exactly. Is there a catch, even then?
What happens where H = 0?
Where H = 0 there is nothing to divide by: those frequencies of the object never reached the image and cannot be recovered (for a lens, everything beyond 2\mathrm{NA}/\lambda). Exact recovery holds only where H \ne 0. And in practice there is always some noise, even if it is only rounding to grey levels.
Q2. At some frequency the OTF is 0.002, and the noise is 0.1 % of the signal there before blurring. What does the inverse filter make of it?
\hat F = F + N/H.
The noise is multiplied by 1/0.002 = 500: 0.1 % becomes 50 % of the signal at that frequency. At frequencies with even smaller H the noise outgrows the signal completely.
Q3. The restored image is dominated by a fine checkerboard of noise. Why the finest frequencies, and not the coarse ones?
Where is H smallest, and is the noise any weaker there?
White noise has about the same strength at every frequency, but the OTF falls towards high frequencies. The inverse gain 1/H is largest exactly at the finest frequencies, so their noise is amplified most: a checkerboard of the finest patterns the grid can hold.
Q4. Two different objects give exactly the same image through a microscope. How is that possible?
Think of a pattern finer than \lambda/2\mathrm{NA}.
Add to any object a grating finer than the cut-off (period below \lambda/2\mathrm{NA}, 186 nm for NA 1.4 at 520 nm). The OTF is zero at its frequency, so its image is exactly zero: the two objects have identical images. Such “invisible objects” make the inverse problem non-unique.
Q5. Name the three conditions for a well-posed problem, and say how deblurring violates each.
Existence, uniqueness, stability.
Existence: noise has components at frequencies where H = 0; no blurred object produces exactly such an image. Uniqueness: invisible objects (the null space of the blur) can be added to any solution. Stability: small noise is multiplied by the huge gains 1/H; a tiny change of the data gives a huge change of the answer.
Q6. Collecting ten times more photons reduces the relative shot noise by about \sqrt{10} \approx 3. Why does that help the inverse filter so little?
Compare 3 with the gains 1/H.
The gains of the inverse filter for a typical blur reach 10^3 to 10^9 (and infinity beyond the cut-off). Dividing the noise by 3 leaves it amplified by those factors; to compensate a gain of 10^6 you would need 10^{12} times more photons. More photons help, but they cannot make the problem well-posed.
Q7. (math) The 1D blur (1, 2, 1)/4 on 4 pixels (periodic) is a circulant matrix. What are its eigenvalues and eigenvectors, and what is its condition number?
Eigenvectors of circulant matrices are Fourier waves; eigenvalues are the DFT of the kernel.
Eigenvectors: the waves e^{2\pi ikj/4}, k = 0, 1, 2, 3 (real versions: (1,1,1,1), (1,0,-1,0), (0,1,0,-1), (1,-1,1,-1)). Eigenvalues: H(k) = \tfrac12 + \tfrac12\cos(2\pi k/4) = 1, 0.5, 0, 0.5. The matrix is singular (H(2) = 0): condition number infinite, and (1, -1, 1, -1) is invisible.
Q8. (math) For \mathbf g = A\mathbf f with condition number \kappa(A) = 10^4, the data have a relative error of 10^{-3}. What does the stability bound allow for the relative error of \mathbf f?
\|\delta\mathbf f\|/\|\mathbf f\| \le \kappa\,\|\delta\mathbf g\|/\|\mathbf g\|.
Up to 10^4 \cdot 10^{-3} = 10: an error ten times the size of the object itself. The bound is reached when the data error lies along the eigenvector with the smallest eigenvalue and the object along the largest.