Noise filtering identifies and reverses the effect of noise on an image, using properties of noise rather than direct observation, since only pixel values after corruption are visible.
Properties of noise:
- Locality
Noise affects isolated pixels, while image pixels are correlated locally, so noisy pixels stand out by examining local correlation. - Randomness
Noise follows a probability distribution based on its source, allowing its level to be estimated.
Noise distribution models
- Gaussian noise
Unimodal with zero mean. Most pixels see zero or small noise. Most common model. - Uniform noise
All noise levels equally probable. Difficult to estimate. Not common. - Salt and pepper noise
Bi-modal with clipping. Affected pixels jump to extreme outlier values.
Frame averaging
For a static scene captured over frames, averaging corresponding pixels across frames cancels the noise contribution while preserving the scene.
Here:
- : static source scene frame
- : noise in frame
Mean filter
Averages pixel values within a local neighbourhood. Since correlated image features vary slowly relative to sampling resolution, any local variation is assumed to be noise.
As a convolution kernel:
Blurring
Local pixel variation is not always caused by noise. Averaging over genuine detail blurs it.
Weighted averages, with more weight on the pivot pixel, reduce blurring:
Gaussian filter
Weights arranged according to a 2-D Gaussian surface.
Conditional averaging
Reduces blurring by only replacing pixels where the local variation is likely to be noise.
- Threshold averaging
Replace the pixel with the local mean only if the difference from the pivot is smaller than a threshold .
- -closest averaging
Select pixels with values closest to the pivot before averaging, avoiding outliers that represent real image features. Requires sorting pixel values.
Median filter
Replaces the pivot pixel with the median value of its neighbourhood.
- Preserves edges better than mean filtering
- Well suited to salt and pepper noise, since outlier values get discarded rather than averaged in