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

Differences between enhancement and depletion mosfet, Q. What Are the Diffe...

Q. What Are the Differences Between Enhancement And Depletion Mosfet? Depletion MOSFET:Here a slab of p_type material is formed from a silicon base and referred to as substrate

What is meaning of parallel in - serial out shift register, What is the Mea...

What is the Meaning of Parallel In - Serial Out Shift Registers? A four-bit parallel in - serial out shift register is shown below D0, D1, D2 and D3 are parallel inputs

Semiconductor, What is the similarities between a vacuum diode and a triode...

What is the similarities between a vacuum diode and a triode?

What is solar water heating, What do you understand by solar water heating ...

What do you understand by solar water heating and discuss different kind of solar water heating based on collector-storage and circulation type. Discuss integrated collector - s

What are the various tones used in stronger telephony, Q. What are the vari...

Q. What are the various tones used in stronger telephony? When called party line is obtained, exchange control equipment transmits out the ringing current to telephone set of t

Semiconductor devices, Semiconductor Devices: We have studied semicond...

Semiconductor Devices: We have studied semiconductor devices. Firstly, we understand what semiconductors in terms of energy band diagrams are. Then we understand what is dopin

Electric Optic Device, Transmission Through a LiNb0 3 Plate Examine the tr...

Transmission Through a LiNb0 3 Plate Examine the transmission of an unpolarized He-Ne laser beam (?o= 633 nm) normally incident on a LiNb0 3 plate (ne = 2.29, no = 2.20) of thickn

Embedded systems design, You have been requested by your Senior Engineer to...

You have been requested by your Senior Engineer to design a lift control unit (LCU) and prepare a report detailing your proposed solution. The client requires a microcontroller bas

List the operation modes of 8255, List the operation modes of 8255 a) ...

List the operation modes of 8255 a) I.O Mode i. Mode 0-Simple Input/Output. ii. Mode 1-Strobed Input/Output (Handshake mode) iii. Mode 2-Strobed bidirectional mode

Squeeze castings, Squeeze Castings: Squeeze casting, also known as ...

Squeeze Castings: Squeeze casting, also known as liquid metal forging, is a combination of casting and forging process . The molten metal is poured into the bottom half

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