Image Enhancement: Frequency Domain Methods: N M F N M H N M G
Image Enhancement: Frequency Domain Methods: N M F N M H N M G
The concept of filtering is easier to visualize in the frequency domain. Therefore, enhancement of image f ( m, n) can be done in the frequency domain, based on its DFT F (u , v ) . This is particularly useful, if the spatial extent of the pointspread sequence h( m, n) is large. In this case, the convolution PSS
g ( m, n) = h(m, n) * f (m, n)
Enhanced Image Given Image
may be computationally unattractive. We can therefore directly design a transfer function H (u , v ) and implement the enhancement in the frequency domain as follows: Transfer function
Lowpass filtering
Edges and sharp transitions in grayvalues in an image contribute significantly to high-frequency content of its Fourier transform. Regions of relatively uniform grayvalues in an image contribute to low-frequency content of its Fourier transform. Hence, an image can be smoothed in the Frequency domain by attenuating the high-frequency content of its Fourier transform. This would be a lowpass filter! For simplicity, we will consider only those filters that are real and radially symmetric. An ideal lowpass filter with cutoff frequency r0 :
1, if H (u, v) = 0, if
u 2 + v 2 r0 u 2 + v 2 > r0
Ideal LPF with r0 = 57 Note that the origin (0, 0) is at the center and not the corner of the image (recall the fftshift operation). The abrupt transition from 1 to 0 of the transfer function H (u , v) cannot be realized in practice, using electronic components. However, it can be simulated on a computer.
Original Image
LPF image, r0 = 57
LPF image, r0 = 36
LPF image, r0 = 26
Notice the severe ringing effect in the blurred images, which is a characteristic of ideal filters. It is due to the discontinuity in the filter transfer function.
Suppose PT =
N 1 M 1
total image power. Consider a circle of radius r0 () as a cutoff frequency with respect to a threshold such that P(u , v) = PT . We can then fix a threshold and obtain an appropriate cutoff frequency r0 () .
v u
Frequency response does not have a sharp transition as in the ideal LPF. This is more appropriate for image smoothing than the ideal LPF, since this not introduce ringing.
1+
u +v r0
2
H (u , v ) =
1
2n
Original Image
LPF image, r0 = 18
LPF image, r0 = 13
LPF image, r0 = 10
Image with false contouring due to insufficient bits used for quantization
Original Image
Noisy Image
LPF Image
The parameter measures the spread or dispersion of the Gaussian curve. Larger the value of , larger the cutoff frequency and milder the filtering. When D (u, v ) = , the filter is down to 0.607 of its maximum value of 1. See Example 4.6 in the text for an illustration. Also read section 4.3.4 for an application of lowpass filtering to text images.
Highpass filtering
Edges and sharp transitions in grayvalues in an image contribute significantly to high-frequency content of its Fourier transform. Regions of relatively uniform grayvalues in an image contribute to low-frequency content of its Fourier transform. Hence, image sharpening in the Frequency domain can be done by attenuating the low-frequency content of its Fourier transform. This would be a highpass filter! For simplicity, we will consider only those filters that are real and radially symmetric. An ideal highpass filter with cutoff frequency r0 :
0, if H (u, v) = 1, if
u 2 + v 2 r0 u 2 + v 2 > r0
Ideal HPF with r0 = 36 Note that the origin (0, 0) is at the center and not the corner of the image (recall the fftshift operation). The abrupt transition from 1 to 0 of the transfer function H (u , v) cannot be realized in practice, using electronic components. However, it can be simulated on a computer.
Original Image
HPF image, r0 = 18
HPF image, r0 = 36
HPF image, r0 = 26
Notice the severe ringing effect in the output images, which is a characteristic of ideal filters. It is due to the discontinuity in the filter transfer function.
Frequency response does not have a sharp transition as in the ideal HPF. This is more appropriate for image sharpening than the ideal HPF, since this not introduce ringing.
u2 + v2
1+
r0
H (u , v ) =
1
2n
Original Image
HPF image, r0 = 47
HPF image, r0 = 36
HPF image, r0 = 81
The parameter measures the spread or dispersion of the Gaussian curve. Larger the value of , larger the cutoff frequency and more severe the filtering. See Example in section 4.4.3 of text for an illustration.