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

Working with various instructions using debug, The purpose of this experime...

The purpose of this experiment is to introduce you to a powerful 80x86 assembly/machine language utility called DEBUG. Preparing Your DEBUG Environment If you have an older

Counters, i need a counter of following o/p truth table 00000000 10000000 1...

i need a counter of following o/p truth table 00000000 10000000 11000000 11100000 11110000 11111000 11111100 11111110 11111111 00000000 10000000 . . . so please suggest me some IC

Triac, what is the daily life work of triac

what is the daily life work of triac

Evaluate apparent depth of a needle, Q. A tank is filled with water to a he...

Q. A tank is filled with water to a height of 12.5cm.The apparent depth of a needle lying at the bottom of the tank is measured by a microscope to be 9.4cm.What is the refractive i

Analyze diode circuit with rlc load, Q. Analyze Diode circuit with RLC load...

Q. Analyze Diode circuit with RLC load? Consider a diode circuit with an RLC load, as shown in Figure, and analyze it for i(t) when the switch S is closed at t = 0. Treat the d

Calculate the approximate donor binding energy, Calculate the approximate d...

Calculate the approximate donor binding energy Calculate the approximate donor binding energy for Si (r = 11.7,m x n = 1.18 m 0 ) Solution: From E= m * n q 4 / 2(4 πε 0

Purpose of compensation and space charge neutrality, My question about abov...

My question about above topic is"what is the use of the of this process" why we do compensation and space charge carrier

Evaluate parameters of a bjt, Q. The parameters of a BJT are given by α = 0...

Q. The parameters of a BJT are given by α = 0.98, I CBO = 90 nA, and i C = 7.5 mA. Find β, iB, and iE.

Weins bridge oscillator, please give me the ckt for wein bridge oscillator ...

please give me the ckt for wein bridge oscillator with 5KHz frequency using transister (with exact values of resistor and capacitor).

8 bit data to register - move immediate instruction , 8 bit  data to Regi...

8 bit  data to Register   This form  of the  instruction is used to copy 8 bit  data directly  to the register  location specified in  the instruction. The  instruction format i

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