Quiz: all smoothers on one image

Short questions to test your understanding. Try each on paper first, then open the answer. The eight methods: Gaussian (heat), median, Perona–Malik, TV, bilateral, non-local means, wavelet shrinkage, Wiener.


Q1. Why does non-local means win the test card by a wide margin (34.6 dB against 30.6 for TV)?

What does NLM believe about images, and what does the card contain?

NLM believes the image repeats itself. The card is full of repeats: a lattice of identical dots, periodic stripes, long straight edges whose patches look alike along their length. Every such pixel finds many copies to average with. On an image without repeats (a unique structure) its advantage disappears.


Q2. Which method removes a 1-pixel line completely, and why?

Which method replaces a pixel by an order statistic of its window?

The median (radius 1, a 3 × 3 window): the line occupies 3 of the 9 pixels of the window, so the median is a background value. It believes structures are wider than the window; a line is not (on the card only 10 % of its contrast is kept).


Q3. For salt-and-pepper noise, which method would you expect to win, and why?

Outliers.

The median: salt-and-pepper pixels are outliers, and the median ignores outliers as long as fewer than half the window is corrupted. The averaging methods spread each outlier over its neighbours. (In the demo: median 26.3 dB, NLM 25.1, the rest lower.)


Q4. Two methods have the same PSNR. You want to count small spots. Which scores would you look at?

PSNR is an average over all pixels.

The contrast kept for small discs and thin lines (the “disc kept” and “line kept” scores), and the method noise around small objects. A method can win PSNR on large flat regions while flattening exactly the small spots you want to count.


Q5. Why do the settings with the best PSNR often look too noisy?

What does each extra bit of smoothing cost in PSNR?

PSNR charges every blurred structure as error. On an image with fine detail, the best PSNR is reached with little smoothing, leaving visible noise in flat regions. Settings chosen by eye smooth more: cleaner, but with lower PSNR (on the micrograph, TV drops from 26.5 to 24.3 dB with the “by eye” setting).


Q6. You threshold after smoothing. Why is TV a better choice than a Gaussian for the mask, but the intensities should still come from the raw image?

What does each do to edges and to the contrast of objects?

TV keeps edges sharp and flat regions clean, so the threshold produces fewer speckles and less rounded shapes (on the very noisy card: 105 wrong pixels against 151 for a Gaussian). But TV lowers the contrast of every object at a rate perimeter/area, and all smoothers move intensity between objects and background: the integrated intensity is only right on the raw image, inside the mask.


Q7. (math) Which of the eight methods are linear filters? Which minimise a convex energy?

Linear: the output for a\,y_1 + b\,y_2 is a times the output for y_1 plus b times that for y_2.

Linear: Gaussian (heat) and Wiener. Convex energies: Gaussian (as quadratic smoothing), median (L1 per window), TV (ROF), wavelet soft thresholding (L1 on coefficients), Wiener (quadratic). Perona–Malik’s energy is non-convex; the bilateral filter and NLM are reweighted means without a single convex energy.