M3.2. Freq domain copy
M3.2. Freq domain copy
Spatial Domain Frequency Domain Filters are classified based on their properties in the Original signal
frequency domain:
H(u,v)
Low-pass filtered
element-wise (1) Low-pass
complex
multiplication
G(u,v)
(2) High-pass High-pass filtered
June 23 DR JOSHUA ALACKAL 2 June 23 DR JOSHUA ALACKAL 3 June 23 DR JOSHUA ALACKAL 4 June 23 DR JOSHUA ALACKAL 5
Low-pass (LP) filtering Low-pass filtering (cont’d) Lowpass filtering (cont’d) Lowpass (LP) filtering (cont’d)
In 2D, the cutoff frequency D0 is specified by the radius of a circle Assuming that we have centered the filter at (P/2, Q/2), as required, D(u,v)
Preserve low frequencies. Preserves low frequencies, attenuates high frequencies. centered at the origin. should be computed as:
◦ Useful for removing details and noise suppression.
frequency domain 1D ILPF 2D ILPF 2D ILPF
representative 1 if 0 u D0 1 if D (u , v ) D0
example H (u ) = 1 if D(u, v) D0 H (u , v) =
0 otherwise H (u, v) = 0 otherwise
0 otherwise
Example: where D(u , v) = (u − P / 2) 2 + (v − Q / 2) 2
where D(u, v) = u + v 2 2
June 23 DR JOSHUA ALACKAL 6 June 23 DR JOSHUA ALACKAL 7 June 23 DR JOSHUA ALACKAL 8 June 23 DR JOSHUA ALACKAL 9
ILPF performance
High-pass (HP) filters High-Pass filtering (cont’d) High-Pass filtering (cont’d)
freq. domain spatial domain Preserves high frequencies, attenuates low frequencies.
Preserve high frequencies.
• A high-pass filter can be obtained from a low-pass filter:
◦ Useful for highlighting details.
ILPF decreasing the 1D IHPF 2D IHPF
disparity between pixel
values by averaging nearby H HP (u , v) = 1 − H LP (u , v)
frequency
pixels. LPF tends to retain representative
domain
the low frequency example
sinc information within an image
Example:
1 if D(u, v) D0
H (u, v) =
1 if u D0 0 otherwise
H (u ) = =1-
* = 0 otherwise where D(u, v) = u 2 + v 2
or D(u, v) = (u − P / 2) 2 + (v − Q / 2) 2
if centered
June 23 DR JOSHUA ALACKAL 10 June 23 DR JOSHUA ALACKAL 11 June 23 DR JOSHUA ALACKAL 12 June 23 DR JOSHUA ALACKAL 13