FAU Erlangen-Nürnberg
Institute of Micro- and Nanostructure Research
After this lecture you can …
notebooks/week12_inverse_deblurring.ipynb — deblurring (naive vs Tikhonov, \(\lambda\) sweep, L-curve), Tikhonov vs TV via ADMM, and a tomography lab: FBP vs SART vs SART + TV under a ±60° missing wedge.Object \(\mathbf{x}\) (synthetic core-shell particle) → forward operator \(H\) (PSF blur) + noise → measurement \(\mathbf{y}\) → regularised estimate \(\hat{\mathbf{x}}\): stable, but with some smoothing bias.
| Modality | \(H\) | Object \(\mathbf{x}\) | Noise | Typical prior |
|---|---|---|---|---|
| HAADF-STEM | PSF \(\star\) \(Z^{1.7}\) | projected density | Poisson | TV / sparsity |
| EELS / EDS map | PSF \(\star\) (linear) | elemental fraction | Poisson | TV, smoothness |
| Electron tomography | Radon transform | 3-D density | ≈ Gaussian | TV, non-negativity |
| HAADF + EDS fusion | \(\{Z^\gamma\)-sum, identity\(\}\) | all elemental maps | Gaussian + Poisson | TV per element |
| 4D-STEM ptychography | multislice (nonlinear) | complex potential | Poisson | learned (Week 13) |
Objects A (two particles) and B (one elongated feature) give nearly identical projections: one \(\mathbf{y}\), many consistent \(\mathbf{x}\).
Singular values of the notebook’s Gaussian-blur \(H\) (left) and reconstruction error vs noise (right): naive inverse grows, Tikhonov stays bounded.
True object (three peaks); blurred + noisy \(\mathbf{y}\) (\(\sigma\) = 3 px, 10 % noise); naive inverse (RMSE 0.968); Tikhonov, \(\lambda \approx 0.13\) (RMSE 0.140, 7× better, slightly broadened peaks).
| Regulariser | Prior belief | Effect |
|---|---|---|
| \(\|\nabla \mathbf{x}\|_2^2\) (L2 / Tikhonov) | varies slowly (Gaussian) | smooth; blurs edges |
| \(\|\nabla \mathbf{x}\|_1\) (TV) | piecewise constant | sharp edges; staircases |
| \(\|\mathbf{x}\|_1\) (L1) | mostly zero | sparse |
| \(\mathbf{x} \geq 0\) | non-negative densities | removes unphysical solutions |
Notebook section 6: step signal (two grain boundaries), \(\sigma\) = 4 px blur, 6 % noise. Left: gradient-Tikhonov (RMSE 0.073) smears the steps and rings; TV via ADMM (RMSE 0.035) keeps them sharp. Right: both errors are U-shaped in \(\lambda\).
tv_admm() is 10 lines of NumPy; 500 iterations on 96 pixels take milliseconds.RMSE vs \(\lambda\) for the deblurring notebook: under-regularised (fits noise) at small \(\lambda\), over-regularised at large \(\lambda\), minimum at \(\lambda^* \approx 0.126\) (RMSE 0.140).
L-curve: residual norm vs solution norm (log–log), one point per \(\lambda\). The corner (\(\lambda \approx 0.175\), RMSE 0.142) is close to the true optimum (0.126, RMSE 0.140) — a good heuristic, not an exact optimum.
Left: Shepp–Logan phantom \(f(x,z)\). Centre: its sinogram \(p_\theta(s)\) — every point traces a sinusoid. Right: Fourier coverage of a ±60° tilt series and the missing wedge (red).
Unfiltered back-projection with 1, 3, 12 and 60 angles (star artefacts, then blur) vs filtered back-projection with 60 angles.

Notebook section 7: the projection of the phantom along \(z\) (left), the 2-D Fourier transform with the central slice \(k_z = 0\) marked (centre), and the 1-D Fourier transform of the projection overlaid on that central slice (right). They agree to machine precision (max. relative deviation ≈ 1e-15).
Notebook section 7 (128×128 phantom, 5 % noise). RMSE: FBP 180° / 60 tilts 0.124; FBP ±60° / 25 tilts 0.218 (streaks, elongation); SART 0.111; SART + TV 0.088 — best, but the wedge is filled by the prior, not measured.
\[\hat{\mathbf{x}} = \arg\min_{\mathbf{x}_i \geq 0}\; \underbrace{\tfrac12\Big\|\mathbf{b}_H - \sum_i (Z_i\mathbf{x}_i)^{\gamma}\Big\|_2^2}_{\Psi_1:\ \text{HAADF, Gaussian}} + \lambda_1 \underbrace{\sum_i \big(\mathbf{1}^\top\mathbf{x}_i - \mathbf{b}_i^\top\log(\mathbf{x}_i + \varepsilon)\big)}_{\Psi_2:\ \text{EDS, Poisson NLL}} + \lambda_2 \underbrace{\sum_i \|\mathbf{x}_i\|_\text{TV}}_{\text{prior}}\]

fusion_utils.py) — the ADMM-style pattern again:


notebooks/week12_inverse_deblurring.ipynb
Key results (SEED=42)
| Quantity | Value |
|---|---|
| \(\kappa(H)\) | 230 |
| naive / Tikhonov RMSE | 0.968 / 0.140 |
| step: Tikhonov / TV | 0.073 / 0.035 |
| FBP 180° / ±60° | 0.124 / 0.218 |
| SART / SART + TV | 0.111 / 0.088 |
Synthetic core-shell nanoparticle. Left: HAADF image (high SNR, \(Z\)-contrast, no chemical specificity). Centre: low-dose elemental map (25 % relative noise). Right: TV-regularised fusion of both signals. Core and shell are recovered with sharp boundaries. Honest caveat: TV may slightly over-estimate core–shell contrast at high \(\lambda_2\).

©Philipp Pelz - FAU Erlangen-Nürnberg - Data Science for Electron Microscopy