StrataQuest Home StrataQuest Glossary Unsharp filter
Image Processing & Correction

Unsharp filter

Output = I + α · (I − Gauss(I, σ)) — two parameters that decouple scale of detail (σ) from strength of emphasis (α)

View
Definition
Unsharp filter computes O = I + α · (I − G_σ * I), where G_σ * I denotes convolution of the image with a Gaussian kernel of standard deviation σ, and α is a non-negative amount parameter. Two parameters with distinct roles: σ controls which spatial scales the filter treats as "detail" (frequencies above approximately 1/σ); α controls how strongly that detail is amplified. The decomposition I = G_σ * I + (I − G_σ * I) partitions the image into a smooth low-frequency component and a detail component; the unsharp filter scales the latter and recombines. As a single linear filter: O = ((1 + α)δ − α · G_σ) * I, where δ is the unit impulse. The kernel sum is always 1 (brightness-preserving) for any (σ, α) pair.
σ chooses the scale of detail
Small σ → fine detail; large σ → broader structure
α controls strength, independently of σ
Two-parameter design — scale and strength decouple
Frequency-domain interpretation
A high-frequency boost with a smooth roll-off
Halos at high α — the overshoot signature
Bright edges develop bright ridges and dark moats

The math, in two registers

Start with the decomposition. For any image I and any low-pass operator L, you can write I = L(I) + (I − L(I)) — the image equals its low-frequency part plus its high-frequency residual. This is an identity for any L; the choice of L determines what "low frequency" means. For Unsharp, L is convolution with the Gaussian G_σ(x, y) = (1/2πσ²) · exp(−(x² + y²)/(2σ²)).

The Unsharp output is:

O = I + α · (I − G_σ * I) = (1 + α) · I − α · (G_σ * I)

This is a linear filter — specifically a convolution with the kernel K = (1 + α)δ − α · G_σ, where δ is the unit impulse. The kernel sum equals (1 + α) · 1 − α · 1 = 1 (using ∑G_σ = 1 since the Gaussian is normalized). Brightness is preserved.

In the frequency domain, taking the Fourier transform of both sides:

Ô(ω) = (1 + α − α · exp(−σ²ω²/2)) · Î(ω)

This frequency response is 1 at DC (ω = 0), rises smoothly to 1 + α as ω grows. The half-rise point is around σω ≈ √(2 · ln 2) ≈ 1.18, i.e., spatial frequencies with period roughly 5.3σ. Below that period, frequencies pass through nearly unmodified; above it, they get progressively amplified up to the ceiling of 1 + α.

The overshoot at a step edge has an analytical form. For an idealized step I(x) = a + (b−a)·H(x) (H = Heaviside step), the Gaussian-blurred version is L(x) = a + (b−a)·Φ(x/σ) (Φ = standard normal CDF). The high-pass I − L peaks at x = 0 on the bright side and dips at x = 0 on the dark side; the peak amplitude is approximately 0.4(b−a)/σ for the Gaussian. After multiplication by α, the overshoot on the output is roughly α · 0.4(b−a)/σ — so for fixed α, smaller σ produces more dramatic but more localized overshoot. This is why σ controls the character of sharpening, not just the amount.

Simplified

The math has two independent knobs. The first knob (σ, the Gaussian radius) controls how blurry the smoothed copy is. The second knob (α, the amount) controls how strongly the detail gets boosted. Different combinations produce different effects:

Small σ (1–2 pixels) with moderate α: crisp edge enhancement, very fine detail brought out.
Large σ (5–10 pixels) with moderate α: emphasis of broader structure — cells, vessels, larger features.
Small σ with large α: aggressive sharpening with visible halos at edges.
Large σ with small α: gentle contrast enhancement across the image.

The halo effect at high α isn't a bug — it's mathematically guaranteed. Where the original image has a sharp bright edge, the Gaussian-blurred copy smooths the edge into a ramp. The difference between the sharp edge and the smooth ramp is largest just at the edge — positive on the bright side, negative on the dark side. Multiplying that difference by a big α and adding it back creates a bright ridge and a dark moat right at the boundary. In photographs this looks like crispness; in scientific images it can distort intensity measurements, which is why measurements should usually come before any sharpening step.

Share This Term
Term Connections