COMPUTER VISION

Image Noise: Types, Models and Denoising

Noise corrupts images during capture, transmission, and processing. Gaussian noise follows a normal distribution; salt-and-pepper is impulse noise. Each type has a matched denoising strategy.

1Sources of Noise in Images

Image noise is an unwanted variation in pixel values that degrades the visual quality of an image. It is an inherent property of photography — there will always be some noise in any captured image. The key question is not how to eliminate it, but how to model and reduce it.

Three main sources produce noise: insufficient light (low-light photography forces high ISO, amplifying the sensor's electronic noise), transmission interference (impulse noise corrupts pixel values as data travels over noisy channels), and sensor heat (thermal noise adds random electron motion, especially in long exposures). Each source produces a different noise distribution.

Sensor noise
Caused by electronic noise in the imaging sensor. Increases with ISO and temperature. Approximately Gaussian in distribution at the pixel level.
Transmission noise
Bits flipped during data transfer. Manifests as isolated pixels set to 0 (black) or 255 (white) — the salt-and-pepper pattern.
Quantisation noise
Rounding error when converting continuous sensor values to discrete integers. Small and uniform — usually negligible compared to sensor noise.

2Gaussian Noise

Gaussian noise adds a random value drawn from a normal distribution N(0, σ²) to each pixel: noisy(x,y) = f(x,y) + ε, where ε ~ N(0,σ²). The result is a smooth, continuous corruption — every pixel is slightly off, but extreme deviations are rare. σ controls the severity: σ=10 is barely visible, σ=50 is very noisy.

Signal-to-Noise Ratio (SNR) quantifies noise severity: SNR = mean signal / σ_noise. Higher SNR means a cleaner image. In practice, Gaussian noise is well-matched by linear filters (Gaussian blur, mean filter) because the averaging operation reduces variance by 1/k² for a k×k kernel.

Gaussian noise is statistically independent at each pixel. Averaging N independent noisy observations of the same scene reduces noise power by a factor of N — this is why burst photography (taking multiple frames and averaging them) is so effective for low-light imaging.

3Salt-and-Pepper Noise

Salt-and-pepper noise (impulse noise) sets a small fraction of pixels to extreme values — 0 (pepper, black) or 255 (salt, white). Unlike Gaussian noise, it is sparse and extreme: most pixels are clean, but corrupted ones are maximally wrong. It commonly arises from transmission errors or faulty sensors.

Best filter: Median

The median filter sorts the neighbourhood window values and takes the middle value. Because 0 and 255 are extreme outliers, they rarely win the median — so the corrupted pixel is replaced by the true local value.

Why mean fails

The mean filter averages all neighbourhood values including the 0/255 outliers. A single salt pixel in a 3×3 window contributes 255/9 ≈ 28 to the average — enough to visibly corrupt the output.

4Denoising Strategies

The choice of denoising filter must match the noise model. Gaussian/mean filter: optimal for Gaussian noise — blurs the image slightly but reduces variance. Median filter: optimal for salt-and-pepper — preserves edges better than mean but is slower. Bilateral filter: edge-preserving Gaussian — weights nearby pixels by both spatial distance and intensity similarity, smoothing uniform regions while keeping edges sharp.

Mean filter
Simple average of k×k neighbourhood. Reduces Gaussian noise variance by 1/k². Fast but blurs edges. O(k²) per pixel.
Median filter
Sorts neighbourhood values, takes middle. Robust to extreme outliers. Non-linear — cannot be expressed as a convolution. Best for impulse noise.
Bilateral filter
Gaussian in both space and intensity. Preserves edges by down-weighting pixels that differ strongly in value. Much slower than mean/median.

Related

Add Gaussian and salt-and-pepper noise; apply mean and median filters

Recall check

0 of …

Say the answer out loud before revealing — recalling is what makes it stick. Next: Image Sharpening: Unsharp Mask and Kernels →

  1. What are the three main sources of image noise?

  2. How does Gaussian noise differ from salt-and-pepper noise?

  3. Why does the median filter outperform the mean filter for salt-and-pepper noise?

  4. What is SNR and how does averaging reduce noise?