Butterworth Bandpass Filter
This simple function was written for my Digital Image Processing course
at Eastern Mediterranean University taught by
Assoc. Prof. Dr. Hasan Demirel
for the 2010-2011 Spring Semester
for the complete report:
Leonardo O. Iheme (email@example.com)
24th of March 2011
I = The input grey scale image
d0 = Lower cut off frequency
d1 = Higher cut off frequency
The function makes use of the simple principle that a bandpass filter
can be obtained by multiplying a lowpass filter with a highpass filter
where the lowpass filter has a higher cut off frquency than the high pass filter.
ima = imread('grass.jpg');
ima = rgb2gray(ima);
filtered_image = gaussianbpf(ima,30,120);
Gaussian Bandpass Filter
When I am executing this code getting error
'Undefined function 'gaussianbpf' for input arguments of type 'uint8'.'
while my code is
>> c = rgb2gray(c);
>> filtered_image = gaussianbpf(c,30,120);
Hi Leonardo, Why is the fft of the original image being added to the filtered version of the fft?
filtered_image = fftI + filter3.*fftI;
Thanks for the 5* rating.
Have you tried initializing with zeros instead? I think you should and then tell us all what happens.
Why do you initialise the filters that way? lines 45-47. Would be of great help.. Thanks in advance
Updated the title