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

Transformer question, When I read the details of how a transformer works an...

When I read the details of how a transformer works and apply those rules to a transformer where the primary core cross-sectional area is twice that of the secondary, I come up with

Circuit theory, i want circuit theory relavant assingment sir please immed...

i want circuit theory relavant assingment sir please immediately

PLC Programming, FIG. 2 Car Park Simulation Consider the above diagram, FI...

FIG. 2 Car Park Simulation Consider the above diagram, FIGURE 2, of the car park. The object of this assignment is to write a program to operate the barriers to allow the cars in

., ABOUT ASSIGNMENT ON MAGNETIC INDUCTION NEAR A LONG WIRE

ABOUT ASSIGNMENT ON MAGNETIC INDUCTION NEAR A LONG WIRE

Find v and i , Find V and I in the figure given below using ideal diode mod...

Find V and I in the figure given below using ideal diode model

Compute the mutual inductance, Compute the mutual inductance: A long s...

Compute the mutual inductance: A long single layer solenoid has an effective diameter of 10 cm and it is wound with 1000 turns/m. There is a small concentrated coil with its p

Electrocardiogram, i av designed my circuit in proteus and written the java...

i av designed my circuit in proteus and written the java graphical code for analysis of the results....i need help on how i can run this circuit in proteus and get the results in t

Features and usage of peripheral component interconnect bus, Discuss featur...

Discuss features and usage of Peripheral Component Interconnect bus. Peripheral Component Interconnect bus has plug as well as play characteristics and the capability to func

Accidents, what are accidents in an organisation

what are accidents in an organisation

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