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

MUX, Is it used to replace the basic gates ?

Is it used to replace the basic gates ?

Explain steady-state stability, Q. Explain Steady-State Stability? The ...

Q. Explain Steady-State Stability? The property of a power system that ensures that it will remain in equilibrium under both normal and abnormal conditions is known as power-sy

Discuss the benefit and limitations of utilizing wind energy, a. Discuss th...

a. Discuss the benefits and limitations of utilizing wind energy for electricity generation. b. Draw the block diagram representation of a thermal power generation unit. Illustr

Determine currents in the circuits, Determine currents in the circuits: ...

Determine currents in the circuits: Determine currents I 1 and I 2 in the given circuits by applying KVL. Solution We apply KVL for first loop : 10 = 1 I 1   + 1

Extrinsic material, Extrinsic Material: THE CHARACTERISTICS OF SEMI C...

Extrinsic Material: THE CHARACTERISTICS OF SEMI CONDUCTOR material can be alter significant bin addition of certain impurity atoms into the relatively pure se conductor mater

Determine the total active power, Determine the total active power: Ci...

Determine the total active power: Circuit is introduced in the Face 1. It is about a single-wires face for a three-phase system. The voltage of the AC source is of 69kV. The s

Define pipelining, Define pipelining? In 8086, to speedup the implement...

Define pipelining? In 8086, to speedup the implementation of program, the instructions fetching and implementation of instructions are overlapped each other. This method is kno

Execute a pspice program to solve for the node voltages, Q. For the circuit...

Q. For the circuit given in Figure, develop and execute a PSpice program to solve for the node voltages.

Regions of operation in bjt, Q. Regions of operation in BJT ? Transisto...

Q. Regions of operation in BJT ? Transistor find many applications like amplifier, switch etc. depending upon the polarity and the magnitude of the applied voltages across the

Operation of mosfet, Operation of MOSFET The operation of a metal-oxi...

Operation of MOSFET The operation of a metal-oxide-semiconductor field-effect transistor which is abbreviated as MOSFET can be separated into three modes, depending upon the

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