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

find the current and voltage by ohms law and kvl, 1. A current carrying co...

1. A current carrying conductor is found to carry 10 μA at a given time slot from 5μs to 1.5 ms. Find the total number of electrons flowing in the conductor during this time slot.

Describe transistor stability parameters, Q. Describe transistor stability ...

Q. Describe transistor stability parameters The two parameters are · The stability factor ,K · Stability measure,ß1 These parameters determine the transistor stability

Modify the jk flip-flop to operate like the t flip-flop, Q. A JK flip-flop ...

Q. A JK flip-flop is shown in Figure (a). (a) Modify it to operate like the D flip-flop of Figure (b). (b) Modify the JK flip-flop to operate like the T flip-flop of Figure (

Digital modulation, what are the different digital modulation techniques?

what are the different digital modulation techniques?

The resistance of a 7 m length of the similar cable, The resistance of a 2 ...

The resistance of a 2 m length of cable is 2.5?. Verify (a) the resistance of a 7 m length of the similar cable and (b) the length of the same wire when the resistance is 6.2

Define a voltmeter, Define a voltmeter A voltmeter is an instrument us...

Define a voltmeter A voltmeter is an instrument used to measure p.d. and must be linked in parallel with the part of the circuit whose p.d. is required.

Digital communication , Classify the following signals as energy signals or...

Classify the following signals as energy signals or power signals. Find the normalized energy or normalized power of each. a. ? ? , 0, 0 0, at Ae t a x t elsewhere

D.c machine, What are the advantages of distributing windings in an alterna...

What are the advantages of distributing windings in an alternator?

Superposition, advantages and disadvantaages of superposition

advantages and disadvantaages of superposition

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

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