Fourier transform - filtering, Electrical Engineering

Assignment Help:

Fourier transform  (filtering)

(i) Perform low pass filtering in the frequency domain. Write and m-file lowfft.m which does this operation.

lowfft.m

function lowfft
im=imread('class_f.png');
imd=double(im);FI=fft2(imd);
phase=angle(FI);
amplitude=abs(FI);
figure;imshow(log(amplitude),[]);
figure;imshow(phase,[]);

%Where is the energy concentrated? where is low frequency in that spectrum?

help fftshift
figure;imshow(log(fftshift(amplitude)),[]);
figure;imshow(fftshift(phase),[]);

%Where is the energy concentrated? Where is the low frequency in that spectrum?

FIc=fftshift(FI);
amplitude=abs(FIc);
figure;imshow(log(amplitude),[]);
[h w]=size(FIc);
w2=uint8(w/2)
h2=uint8(h/2)
s=50;
mask=zeros(h,w);
mask(h2-s:h2+s,w2-s:w2+s)=1;
figure;imshow(mask,[]);

%What is the role of the box filter here?

FFIc=FIc.*mask;
phase=angle(FFIc);
amplitude=abs(FFIc);
figure;imshow(log(amplitude),[]);
figure;imshow(phase,[]);
FFI=ifftshift(FFIc);
RI=ifft2((FFI));
figure;
imshow(real(RI),[]);

%What happens when you apply the mask filer?
%Where do the artifacts come from?

(ii) Perform high pass filtering in the frequency domain. Write and m-file highfft.m which does this operation.
replace the mask by

mask=ones(h,w);
mask(h2-s:h2+s,w2-s:w2+s)=0;

(iii) Filter the image for different values of parameter s.
What happens when you vary the size of the box filter?


Related Discussions:- Fourier transform - filtering

Components of gis - methods, Methods: A successful GIS operates accordi...

Methods: A successful GIS operates according to a well-designed plan and business rules that are the models and operating practices unique to every organization. GIS gives i

Radio over Fiber, I need to get a summary for a radio over fiber paper that...

I need to get a summary for a radio over fiber paper that I have , the summary need to be on the following format: abstract, introduction,methodology,results, conclusion and refere

Functions of the physical layer in the internet model, (a) Describe the f...

(a) Describe the four functions of the physical layer in the Internet Model. (b) (i) With the help of a diagram describe the main stages involved in the digitization of a

Draw a schematic diagram of transformer connections, Q. Three single-phase,...

Q. Three single-phase, 10-kVA, 2400/120-V, 60- Hz transformers are connected to form a three- phase, 4160/208-V transformer bank. Each of the single-phase transformers has an equiv

Linear components, A linear circuit component is one that has a linear I V ...

A linear circuit component is one that has a linear I V characteristic

Give some applications of nichrome, Give some applications of nichrome. ...

Give some applications of nichrome. Nichrome is an alloy of iron, chromium, nickel and manganese. This is used for electric iron, for making heating elements and another hea

Quartus, I have a project due tomorrow, i have exhuasted all my resources, ...

I have a project due tomorrow, i have exhuasted all my resources, and cannot understand how to do the project, it is VHDL coding in Quartus program, i can send the assignment if yo

What is a bode plot and what are i''s uses, Q. (i) What are the different t...

Q. (i) What are the different types of plots for frequency response in an RC coupled amplifier?     (ii) What is a Bode Plot? What are it's uses? The different types of

Current flow through the channel of a jfet after pinch off, Q. How does cur...

Q. How does current flow through the channel of a JFET after pinch off? It is seen that above the pinch off voltage at a constant value of VDS (saturation drain current, ID inc

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd