This document summarizes a presentation on implementing and comparing low pass filters in the frequency domain. It introduces low pass filters and their use in smoothing images by reducing high frequencies. It then compares ideal, Butterworth, and Gaussian low pass filters. The document demonstrates implementing each filter type in MATLAB on sample images and analyzing the results. Code examples are provided for applying the different low pass filters using 2D fast Fourier transforms.
2. AGENDA
Introduction
Low Pass Filters
Comparison Between Types of LPF
Implementation of LPF
Demonstration of Implementation in MATLAB
3. INTRODUCTION - FILTERS IN FREQENCY DOMAIN
Image filtering in frequency domain can be grouped in three,
depending on the effects:
2. High pass filters (sharpening filters)
3. Notch Filters (band-stop filters)
1. Low pass filters (smoothing filters)
4. LOW PASS FILTERS (LPF)
Why Is It Used?:
Creates a blurred (or smoothed) image
Reduces the high frequencies and leave the low frequencies of the
Fourier transformation to relatively unchanged
How Does It Works?
Low frequency components correspond to slow changes in images
Used to remove high spatial frequency noise from a digital image
The low-pass filters usually employ moving window operator which
affects one pixel of the image at a time, changing its value by some
function of a local region (window) of pixels.
The operator moves over the image to affect all the pixels in the
image.
5. COMPARISON BETWEEN TYPES OF LPF
Ideal LPF:
Cuts off all components that are greater than distance Do from center
Butterworth LPF:
The transfer function of a Butterworth low pass filter of order n with cut-off
frequency at distance D0 from the origin
No clear cut-off between passed & filtered frequencies
Gaussian LPF:
Does not have sharp discontinuity
Transfer function is smooth, like Butterworth filter
12. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Fourier Spectrum of Bird Image
13. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Spectrum of Bird Image
19. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Fourier Spectrum of Siberian Husky Fox Image
20. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Spectrum of Siberian Husky Fox Image
26. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Fourier Spectrum of Rose Flower Image
27. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Spectrum of Rose Flower Image
33. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Fourier Spectrum of Wild Cat Image
34. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Spectrum of Wild Cat Image
40. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Fourier Spectrum of Movie Poster Image
41. Result of Butterworth Low Pass Filter Result of Gaussian Low Pass Filter
Original Image Result of Ideal Low Pass Filter
Spectrum of Movie Poster Image
43. APPENDIX – MATLAB CODE
Low Pass Filter Function
H = lpfilter(type, M, N, D0, n)
[U, V] = dftuv(M, N);
D = sqrt(U.^2 + V.^2);
switch type
case 'ideal'
H = double(D <=D0);
case 'btw'
if nargin == 4
n = 1;
end
H = 1./(1 + (D./D0).^(2*n));
case 'gaussian'
H = exp(-(D.^2)./(2*(D0^2)));
otherwise
error('Unknown filter type.')
end