Frequency Domian Filtering Module
Frequency Domian Filtering Module
Source: Digital Image Processing by Rafael C. Gonzalez and Richard E. Woods, PHI, 3rd Edition, 2010
Reference Chapters: Chapter 4 (Sections 4.7 to 4.9), Chapter 6 (Sections 6.1 to 6.3)
(Pages 169–172)
In frequency domain filtering, images are first converted to the frequency domain using the 2D Discrete
Fourier Transform (DFT). The transformation separates the image into its frequency components, enabling
manipulation in the frequency space. The filtered result is then converted back to the spatial domain using
the Inverse DFT (IDFT).
This approach is particularly useful when the image processing operation involves detecting or
manipulating periodic patterns or when global filtering is desired.
Advantages:
M −1 N −1
F (u, v) = ∑ ∑ f (x, y)e−j2π( M + N )
ux vy
x=0 y=0
M −1 N −1
g(x, y) = Re { ∑ ∑ G(u, v)ej2π( M + N ) }
1 ux vy
MN u=0 v=0
Convolution Theorem:
1
This theorem states that convolution in the spatial domain corresponds to multiplication in the frequency
domain, and vice versa.
Applications include satellite imagery enhancement, noise reduction in biomedical scans, and pattern
recognition.
(Pages 172–174)
Smoothing aims to suppress high-frequency components, which are often associated with noise and fine
details, while preserving low-frequency content.
H(u, v) = {
1 if D(u, v) ≤ D0
0 otherwise
- Sharp cutoff, may cause ringing artifacts due to abrupt transitions (Gibbs effect).
1
H(u, v) = 2n
1 + ( D(u,v)
D0 )
- More gradual transition; the parameter n controls the filter's order and roll-off sharpness.
D2 (u,v)
−
2D02
H(u, v) = e
Applications include denoising, background blurring, and smoothing of medical or facial images before
further processing.
(Pages 174–176)
2
Sharpening enhances edges and fine detail by amplifying high-frequency components.
H(u, v) = {
0 if D(u, v) ≤ D0
1 otherwise
1
H(u, v) = 2n
1 + ( D(u,v)
D0
)
D2 (u,v)
−
2D02
H(u, v) = 1 − e
- Smooth frequency emphasis; avoids ringing and is well-suited for edge enhancement.
High-Frequency Emphasis:
4. Color Fundamentals
(Pages 394–396)
Color is a result of the human eye’s response to different wavelengths of visible light. The CIE standard
defines color based on three matching functions:
Chromaticity Coordinates:
3
X Y
x= , y=
X +Y +Z X +Y +Z
- x, y : represent hue and saturation, independent of brightness Y .
5. Color Models
(Pages 397–403)
Color models define how color is represented numerically. They are essential for various applications such
as image acquisition, compression, display, and printing.
RGB to CMY:
C = 1 − R, M = 1 − G, Y =1−B
HSV:
C =V ⋅S
m=V −C
YCbCr:
(Pages 403–405)
Pseudo-coloring assigns visible colors to grayscale intensities to improve interpretability. This is useful in
thermography, geophysical data visualization, and medical imaging.
4
Intensity Slicing:
False coloring techniques enable clearer interpretation of complex data such as heat maps, elevation
models, or tissue abnormalities.