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

Human resources - kpi, Human Resources - KPI It is the responsibility ...

Human Resources - KPI It is the responsibility of management to have the lean, capable, customer friendly organization that strives for catering to diversified need of all the

Physics, high resistivity materials

high resistivity materials

Voice control mobile base, this is my final year project and i need help on...

this is my final year project and i need help on how to about it.

Find the pull that must be exerted by the spring, Q. Figure can also be con...

Q. Figure can also be considered as a simple model of a magnetically operated relay that is commonly used for the automatic control and protection of electric equipment. Consider t

Determine the supply current and the supply voltage, A single phase line ha...

A single phase line has an impedance of 8.4 + j11.2 ?. The line feeds a load consisting of a resistor and an inductor connected in parallel as shown in Figure 1. The load is absorb

What is polyphase induction machine performance, Q. What is Polyphase Induc...

Q. What is Polyphase Induction Machine Performance? Some of the important steady-state performance characteristics of a polyphase induction motor include the variation of curre

What is macro, What is macro? A macro is a group of instructions writte...

What is macro? A macro is a group of instructions written within brackets  and recognized  by a name .This is used when a repeated group of instructions is too short or not app

Obtain an expression for the closed-loop transfer function, Q. A noninverti...

Q. A noninverting op-amp circuit and its closed-loop representation are given in Figure. Obtain an expression for the closed-loop transfer function H(ω) = Y (ω)/X(ω) and comment on

Management of Initiatives and Focus - KPI, Management of Initiatives and Fo...

Management of Initiatives and Focus - KPI In this era of fierce competition and to have the competitive edge, it is significant to conserve the material and human resources th

Principle of oscillation in an rc phase shift oscillator, Q. What is the ba...

Q. What is the basic principle of oscillation in an RC phase shift oscillator. With a neat sketch explain its working? For producing oscillations there must have positive feedb

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