1. Image Restoration vs. Image Enhancement

First, it is crucial to understand the difference between these two concepts:

2. Understanding Noise Models

Noise in digital images usually occurs during acquisition (due to sensor temperature or lighting) or transmission (due to electrical interference). Because noise is a random fluctuation in pixel values, it is mathematically modeled using probability density functions (PDFs). Common models include Gaussian (the most common), Rayleigh, Erlang, Exponential, Uniform, and Impulse (Salt-and-Pepper) noise.

What is an Image Noise Model?

In digital image processing, noise is defined as a random fluctuation in pixel values. Because these fluctuations are random, we mathematically characterize them using Probability Density Functions (PDFs). A PDF is an equation that links a specific pixel intensity value (z) with its mathematical probability of occurring.

Here is a detailed breakdown of the six primary noise models discussed:

1. Gaussian Noise (The Most Common)

Gaussian noise is the most frequently used model because it closely approximates noise that occurs in real-world situations, such as sensor noise during image acquisition.

2. Impulse Noise (Salt-and-Pepper)

Unlike Gaussian noise which alters pixels by a random continuous amount, impulse noise completely replaces a pixel's value with either maximum brightness or maximum darkness. It typically arises from quick transients, like faulty switching during imaging.

3. Uniform Noise

4. Rayleigh Noise

5. Erlang (Gamma) Noise

6. Exponential Noise


Summary Comparison Table

Noise Model Visual Shape of PDF Primary Visual Effect on an Image
Gaussian Symmetrical Bell Curve Adds a general, uniform "grain" across the entire image.
Salt-and-Pepper Two extreme spikes Adds isolated, highly visible white (salt) and black (pepper) dots.
Uniform Flat Rectangle Washes out the image with a completely even distribution of noise.
Rayleigh Right-skewed curve Adds noise that heavily favors mid-to-high intensity values.
Erlang (Gamma) Right-skewed curve Similar visual degradation to Rayleigh, but mathematically distinct.
Exponential Decaying slope Noise heavily concentrated at a specific low value, fading out at higher intensities.

Pasted image 20260402011441.png

example on how to apply noise models here


Comparison 1: Spatial Domain Filters (For Random Noise)

When an image is degraded only by random additive noise, we use Spatial Filters, which operate directly on the pixels. They are divided into three main families:

A. Mean Filters (Averaging)

These filters calculate a specific mathematical average of the pixels within a neighborhood window.

Filter Type How it Works Best Used For Drawbacks Mathematical Equation
Arithmetic Mean Computes the standard average of pixels in the window. General smoothing and reducing general noise. Blurs the image and loses sharp details. f^(x,y)=1mn(s,t)Sxyg(s,t)
Geometric Mean Multiplies pixels together, then takes the mn-th root. General smoothing. Performs similarly to arithmetic mean but retains slightly more detail. f^(x,y)=[(s,t)Sxyg(s,t)]1mn
Harmonic Mean Divides the total number of pixels by the sum of their reciprocals. Works well for Gaussian noise and "salt" noise (white pixels). Fails completely for "pepper" noise (black pixels). f^(x,y)=mn(s,t)Sxy1g(s,t)
Contraharmonic Mean Uses a fractional formula controlled by an order parameter, Q. Excellent for Salt-and-Pepper noise. Use Q>0 to eliminate pepper noise, or Q<0 to eliminate salt noise
(Q = 0, -1 maps to Arithmetic and Harmonic respectively).
Choosing the wrong sign for Q drastically worsens the image. f^(x,y)=(s,t)Sxyg(s,t)Q+1(s,t)Sxyg(s,t)Q

B. Order Statistics Filters (Sorting)

Instead of doing math on the pixel values, these filters sort the neighborhood pixels from lowest to highest and pick a specific one.

Filter Type How it Works Best Used For
Median Sorts pixels and selects the exact middle value. Extremely effective for Salt-and-Pepper (impulse) noise. It removes extreme values without blurring edges as much as linear filters.
Max Sorts pixels and selects the highest value. Finding the brightest points in an image; effectively reduces "pepper" (black) noise.
Min Sorts pixels and selects the lowest value. Finding the darkest points in an image; effectively reduces "salt" (white) noise.
Midpoint Averages only the absolute highest (Max) and lowest (Min) values. Works best for randomly distributed Gaussian or Uniform noise.
Alpha-Trimmed Mean Deletes the d/2 lowest and d/2 highest values, then averages the remaining pixels.

When 𝑑 = 0, the alpha-trimmed filter reduces to the arithmetic mean filter. If 𝑑 = 𝑚𝑛 −1, the filter becomes a median filter.
Great for situations with multiple types of noise mixed together (e.g., Salt-and-Pepper mixed with Gaussian).

C. Adaptive Filters

Unlike the filters above which blindly apply the exact same rule to every pixel, Adaptive Filters (like the Adaptive Median Filter) change their behavior based on the local image characteristics.

Pasted image 20260402013452.png


Comparison 2: Frequency Domain Filters (For Periodic Noise)

While Spatial Filters are great for random noise, Frequency Domain Filters are required for Periodic Noise. This noise usually comes from electromagnetic interference and appears as repeating, uniform patterns over the image (which look like concentrated bursts of energy in a Fourier transform).

Filter Type Function Use Case
Band Reject Removes a specific "ring" or band of frequencies (D1 to Dh) while leaving lower and higher frequencies intact. Highly effective at removing broad periodic noise patterns.
Band Pass The exact opposite of Band Reject. It only allows a specific band of frequencies to pass through. Used to isolate a specific frequency range for analysis. Hbp(u,v)=1Hbr(u,v).
Notch Reject Instead of removing a whole ring, it removes highly specific, pinpoint frequency components (appearing in symmetric pairs around the origin). Perfect for removing a clearly defined interference pattern caused by an electrical disturbance (like the interference grid in a satellite photo).

Pasted image 20260402013721.png