Blind deconvolution
Blind deconvolution is the process of recovering a sharp image and the unknown blur (point-spread function) from a blurred, noisy observation — essential in microscopy, astronomy, machine vision and consumer photography.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Blind deconvolution is used when both the original image and the blur (caused by motion, defocus, atmosphere, lens aberrations or system optics) are unknown. Engineers use it in medical imaging, remote sensing, microscopy and machine-vision inspection to recover usable images from degraded measurements.
Key ideas
Start from first principles and definitions.
Image formation model: A continuous scene intensity f(x,y) is transformed by the imaging system into the measured image g(x,y). In many practical cases (spatially-invariant systems), the system acts by convolution with a point-spread function (PSF) h(x,y) and additive noise n(x,y). The forward model (discrete sampled form) is
g = f * h + nDefine terms:- g: observed (blurred, noisy) image (discrete 2-D array). Unit: counts or radiance (depends on sensor).
- f: unknown original (sharp) image.
- h: unknown PSF (blur kernel). Often assumed non-negative and integrates to 1 (energy-preserving):
sum h = 1. - n: additive noise (typically modelled as Gaussian). For photon-counting sensors, noise is better modelled as Poisson and is not additive; then g is drawn from a Poisson process with mean f*h.
*denotes 2-D convolution.
Shift-invariance assumption: the PSF h does not vary with spatial location. This means the same kernel applies to all pixels. Many derivations assume this; if it fails (space-variant blur) the problem is harder.
Frequency-domain relation: Taking discrete Fourier transform (DFT) of the convolution (assuming circular convolution or padded boundaries) gives multiplication:
G = F · H + NwhereG, F, H, Nare the DFTs. This explains why deconvolution often uses Fourier methods.Non-blind vs blind deconvolution:
- Non-blind deconvolution: PSF h is known; only f is estimated. Example solution: inverse filter, Wiener filter.
- Blind deconvolution: both f and h are unknown and must be estimated from g. This is ill-posed (many f,h pairs can explain g) and needs constraints.
Ill-posedness and regularization: Blind deconvolution is ill-posed: solutions are non-unique and sensitive to noise. To obtain stable solutions we use priors or regularizers expressing belief about f and/or h. Common priors:
- Smoothness prior: penalise large gradients of f (Tikhonov regularization, L2 norm of gradient).
- Sparsity prior: natural images have sparse derivatives; use total variation (TV) or L1 regularisation on gradients.
- Non-negativity: intensities and PSF values are >= 0.
- PSF constraints: PSF sums to 1 (energy conservation) and is localized.
Statistical formulation (MAP and ML): Maximum-likelihood (ML) and maximum a posteriori (MAP) estimation are standard. Under Gaussian noise and priors, MAP estimate minimizes a cost:
min_{f,h} ||g - f * h||^2 + λ_f R_f(f) + λ_h R_h(h)whereR_fandR_hare regularizers. Choose λ weights to control strength.Optimization strategies:
- Alternating minimization (coordinate descent): fix h, estimate f; then fix f, estimate h; repeat. Each subproblem is a regularized linear inverse problem.
- Gradient-based methods: compute gradients of the cost w.r.t f and h and perform descent with constraints (projected gradient for non-negativity or simplex projection for PSF sum=1).
- EM / Richardson–Lucy (RL) family: for Poisson noise, RL deconvolution gives multiplicative updates; blind RL alternates updating f and h with normalization.
Richardson–Lucy (RL) algorithm (non-blind): Derived from ML for Poisson noise, RL is an iterative multiplicative update that preserves non-negativity. It can be extended to blind case by alternating updates and enforcing PSF normalization.
What to draw in exams: draw three panels side-by-side: (1) original sharp image f (label axes x,y, intensity), (2) PSF h as a small kernel shown as a small 2-D hump, (3) observed blurred image g produced by convolving f with h; draw arrow labeled “convolution” between f and g. Also draw frequency-domain magnitudes: |F|, |H|, |G| with multiplication arrow |G| = |F|·|H|.
Formulas
Each line below is a formula; after it, what each symbol means, SI unit and when it applies.
g = f * h + n — g: observed image (counts), f: true image (counts), h: PSF (dimensionless; often sum=1), n: additive Gaussian noise (counts); applies to discrete sampled images, shift-invariant model. For Poisson noise (photon counting), use a likelihood model g ~ Poisson(f*h) without an additive n term.
G = F · H + N — capital letters denote DFTs of corresponding lowercase images; multiplication is pointwise; applies when circular convolution or proper padding assumed.
min_{f,h} ||g - f * h||_2^2 + λ_f R_f(f) + λ_h R_h(h) — energy to minimize for MAP estimate under Gaussian noise; ||·||_2 is Euclidean norm; λ are regularization weights; R are regularizers.
F_hat = W · G — Wiener filter estimate of F in the frequency domain for non-blind deconvolution; W = H* / (|H|^2 + S_n / S_f) where H* is complex conjugate of H, S_n and S_f are power spectra of noise and signal respectively; applies when noise is Gaussian and second-order statistics known.
f^{(t+1)} = f^{(t)} · ( (h_flipped * (g / (f^{(t)} * h))) ) — Richardson–Lucy multiplicative update (non-blind, Poisson noise). Here / and · are pointwise division and multiplication; h_flipped is PSF mirrored. Applies for Poisson noise ML estimation.
sum_x,y h(x,y) = 1 — PSF normalization, dimensionless; often enforced as constraint.
Worked examples
Example 1 — Non-blind deconvolution by direct inversion (small circular 1-D example, exam-style). Problem: Suppose we have a 1-D image f = [1, 2, 1] (unitless counts) and a known circular PSF h = [0.2, 0.6, 0.2]. Observed g = h circularly convolved with f. Recover f from g by matrix inversion. Steps:
- Compute g by circular correlation (first-row circulant with the kernel as given; correlation equals convolution here because h is symmetric): build circulant matrix H with first row [0.2, 0.6, 0.2]. Multiply H·f.
- Row 1: 0.2·1 + 0.6·2 + 0.2·1 = 1.6
- Row 2: 0.2·1 + 0.2·2 + 0.6·1 = 1.2
- Row 3: 0.6·1 + 0.2·2 + 0.2·1 = 1.2 So g = [1.6, 1.2, 1.2].
- Form linear equations H f = g: 0.2x +0.6y +0.2z =1.6 0.2x +0.2y +0.6z =1.2 0.6x +0.2y +0.2z =1.2
- Solve (subtract second from third gives z = x). Substitute into equations and solve: From algebra: x = 1, y = 2, z = 1.
- Final answer: recovered f = [1, 2, 1] (bold: [1, 2, 1]). This shows exact recovery in noise-free circular case.
Example 2 — MAP formulation and alternating minimization (theory/model-answer long question). Question: Write the MAP cost for blind deconvolution with Gaussian noise and smoothness priors; show alternating minimization steps and derive gradient for f-subproblem. Model answer (stepwise):
- Assume additive Gaussian noise with variance σ^2. Likelihood: p(g|f,h) ∝ exp(-||g - f*h||_2^2 / (2σ^2)). Choose priors p(f) ∝ exp(-α R_f(f)), p(h) ∝ exp(-β R_h(h)).
- MAP estimate maximizes p(f,h|g) ∝ p(g|f,h) p(f) p(h) ⇒ minimizes negative log:
E(f,h) = ||g - f*h||_2^2 + λ_f R_f(f) + λ_h R_h(h)where λ_f = 2σ^2 α, λ_h = 2σ^2 β. - Alternating minimization: fix h^(k) and solve for f^(k+1) = argmin_f E(f,h^(k)). Then fix f^(k+1) and solve for h^(k+1).
- To derive gradient for f-subproblem (use discrete convolution as linear operator H): write g - f*h = g - H f. Then gradient ∇_f E = -2 H^T (g - H f) + λ_f ∇ R_f(f). For Tikhonov smoothness R_f = ||L f||_2^2 (L a discrete derivative), ∇ R_f = 2 L^T L f. So gradient
∇_f E = -2 H^T (g - H f) + 2 λ_f L^T L f. - Solve linear system H^T H f + λ_f L^T L f = H^T g (normal equations) or use conjugate gradients. Apply non-negativity projection after each iteration. For the h-subproblem similarly with f as linear operator.
Notes: enforce PSF constraints after each h update: non-negativity and
sum h = 1(project onto simplex).
This model derivation is the standard exam answer; it explains the assumptions (Gaussian noise, choice of prior), shows the exact cost function and derivation of the linear normal equations.
Common mistakes
- Not enforcing PSF constraints (non-negativity and sum=1) in blind algorithms; this allows trivial scalings (f scaled up, h scaled down) — scale ambiguity.
- Confusing circular convolution (DFT) with linear convolution; forgetting to pad causes wrap-around artefacts.
- Mixing Poisson-based RL updates with Gaussian-based Wiener formulas without changing noise assumptions.
- Not regularising the PSF; estimating a very noisy PSF leads to overfitting to noise.
For your exam
Kinds of questions:
- Definition & concept: define blind deconvolution, PSF, shift-invariance.
- Short notes: discuss priors (TV, smoothness), scale ambiguity, constraints.
- Derivations: derive MAP cost from likelihood and priors; derive gradient or normal equations for f-subproblem.
- Numericals: small convolution and inversion (like worked example 1) or simple one-step RL update.
- Diagrams: image → PSF → blurred image; frequency-domain multiplication.
What full-marks answers include:
- Clear statement of assumptions (noise model, shift-invariance).
- Correct cost function and explanation of each term.
- Proper derivation of gradients/normal equations with correct linear algebra (use H as convolution operator, show H^T).
- Mention of constraints and how to enforce them (non-negativity, sum-to-one) and regularization choice with reasoning.
Quick check
- What is the main source of non-uniqueness in blind deconvolution?
- Give one statistical and one deterministic prior used in blind deconvolution.
- Why must you pad an image before Fourier-domain deconvolution? Answers: 1) Scale and shift ambiguities and many (f,h) pairs explain g; 2) Statistical: sparsity/TV prior; Deterministic: PSF non-negativity and sum=1 (normalization); 3) To avoid circular convolution (wrap-around) and correctly implement linear convolution with DFT.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?