Dip Notes
Dip Notes
Image restoration refers to the process the average of its neighbors; reduces
of recovering an original image that has Gaussian noise but can blur edges. 6. Homomorphic Filtering
been degraded by known distortions - Median Filter: Replaces each pixel with Homomorphic filtering is used for
such as noise, blur, or motion. The main the median of the surrounding pixels; contrast enhancement and illumination
goal is to reconstruct a clean image from effective for salt-and-pepper noise. correction. It is based on separating
a noisy or blurred version using - Gaussian Filter: Uses a Gaussian illumination and reflectance:
mathematical models and filtering function for smoothing; preserves edges f(x, y) = i(x, y) * r(x, y)
techniques. better than mean filtering.
- Adaptive Filters: Adjust filter behavior Taking the logarithm:
based on local statistics. ln f(x, y) = ln i(x, y) + ln r(x, y)
1. Image Degradation and Restoration
Model This transforms multiplicative
The degradation process can be 4. Degradation Function components into additive ones. The
mathematically modeled as: The degradation function h(x, y) defines image is then processed in the
g(x, y) = h(x, y) * f(x, y) + η(x, y) the distortion applied to the image. frequency domain to reduce low-
Where: Common causes include: frequency illumination and enhance
- g(x, y): Degraded image - Motion blur: When the camera or high-frequency reflectance (details),
- f(x, y): Original image object moves during image capture. followed by exponential transformation
- h(x, y): Degradation function (e.g., blur - Defocus blur: Due to out-of-focus to get the final result.
function) lenses.
- *: Convolution operation .
- η(x, y): Additive noise In the frequency domain, degradation is
represented as:
The aim of image restoration is to G(u, v) = H(u, v) * F(u, v) + N(u, v)
estimate the original image f(x, y) from
the observed g(x, y), given knowledge of Where:
h(x, y) and the noise. - G(u, v): Fourier transform of degraded
image
- H(u, v): Degradation function in
2. Noise Models frequency domain
Noise is unwanted random variation in - F(u, v): Original image in frequency
pixel values, often introduced during domain
image acquisition or transmission. - N(u, v): Noise component
Common noise models include:
- Gaussian Noise: Caused by sensor
noise; follows a normal distribution. 5. Inverse Filtering
- Salt-and-Pepper Noise: Caused by Inverse filtering attempts to restore the
transmission errors; appears as random image by reversing the effect of the
black and white dots. degradation:
- Poisson Noise: Seen in low-light or F̂ (u, v) = G(u, v) / H(u, v)
photon-limited images.
- Speckle Noise: Multiplicative noise However, it has limitations:
common in radar and ultrasound - Highly sensitive to noise.
imaging. - If H(u, v) is near zero, division
amplifies the noise, making the result
unstable.
3. Noise Filters
To remove noise from images, various
spatial domain filters are used:
- Mean Filter: Replaces each pixel with
Image Compression and Redundancy 2. Assign shorter codes to
more frequent symbols.
Image compression reduces the amount of
Efficient and simple but requires
knowledge of the symbol
data required to represent a digital image. probabilities.
This is achieved by removing different types
of redundancy from the image data.
5. Arithmetic Coding
1. Coding Redundancy
A more advanced lossless
compression method.
Refers to inefficient representation Encodes the entire message into a
of pixel values. single number (a fraction between
Occurs when fixed-length codes 0 and 1).
are used regardless of how Advantage: Provides better
frequently a pixel value appears. compression than Huffman coding,
Example: Assigning the same especially when symbol
number of bits to frequent and probabilities are skewed.
rare symbols. Drawback: More complex and
Solution: Use variable-length slower than Huffman coding.
coding (like Huffman coding),
where more frequent values get
shorter codes.
6. Lossy Compression Techniques
7. JPEG Compression
3. Psychovisual Redundancy
4. Hough Transform
A technique for detecting
geometric shapes like lines and
circles.
Converts edge points in image
space to parameter space.
Example (line detection):
Ρ = x coso + y sin o