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.
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.
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.
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.
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.
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.
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.
Say the answer out loud before revealing — recalling is what makes it stick. Next: Image Sharpening: Unsharp Mask and Kernels →
What are the three main sources of image noise?
How does Gaussian noise differ from salt-and-pepper noise?
Why does the median filter outperform the mean filter for salt-and-pepper noise?
What is SNR and how does averaging reduce noise?