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

Bifurcation using simulink, i am implementing a paper "on the chaotic behav...

i am implementing a paper "on the chaotic behaviour of buck converter" a want to plot bifurcation diagram by using simulink blocks without using coding is it possible??

Show advantages of oscillators, Q. Show Advantages of Oscillators? Alth...

Q. Show Advantages of Oscillators? Although oscillations can be produced by mechanical devices (e.g. alternators), but electronic oscillators have the following advantages:

Major advantages of fet transistors over bjt transistors, Q. What the major...

Q. What the major advantages FET transistors over BJT transistors? a. BJT transistor (bipolar junction transistor) is a bipolar device - the prefix bi-revealing that the conduc

State diagram for a typical von neumann machine, Question: a) Give the ...

Question: a) Give the instruction cycle state diagram for a typical Von Neumann machine. b) Give two diagrams to differentiate between a Memory and CPU connections. c) Co

Obtain an expression for the induced emf, Q. Consider a conducting loop of ...

Q. Consider a conducting loop of length l and width w, as shown in Figure, rotated about its axis (shown by the broken line) at a speed of ωm rad/s under the influence of a magneti

Explain inductorless filters, Q. Explain Inductorless Filters Inductorl...

Q. Explain Inductorless Filters Inductorless (Active) Filters Filters (used to pass or eliminate certain frequency components of a signal) that are suitable for IC fabricati

Robotic, Ask questCompute the mean and variance of a four-level image with ...

Ask questCompute the mean and variance of a four-level image with histogram p(z\ ) = 0.1, p{zi) = 0.4, ?(1?) =0.3, p{za) = 0.2. Assume that z\ = 0, zi = 1, z$ = 2, and ? — ?. i

Traffic light display, Traffic Light Display Design a three color LED sy...

Traffic Light Display Design a three color LED system with the following times for each LED: Duration of Green signal : 16s Duration of Yellow signal : 1s Duration of R

Voltage transfer function of the high-pass filter, Determine the voltage tr...

Determine the voltage transfer function of the high-pass filter circuit shown in Figure, and find the expression for ω 0 .

#mixed storage oscilloscope, ..Explain mixedd storage oscilloscope with ne...

..Explain mixedd storage oscilloscope with neat diagram,

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