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

Radio hardware, Filters 1. You need to design a lowpass filter with cutoff ...

Filters 1. You need to design a lowpass filter with cutoff frequency Fc= 1MHz. a. What is the minimum filter order required for 30 dB rejection (-30 dB gain) of 10 MHz? b. What is

Illustrate the basic working of modem, Q. Illustrate the basic working of M...

Q. Illustrate the basic working of Modem? Modem: Modems are generally provided by network operators or by vendors who aren't necessarily the manufacturers of computer systems.

Determine a normalized frequency at 820nm, Determine a normalized frequency...

Determine a normalized frequency at 820nm for a step index fibre having 25µm core radius. Given n 1 =1.48 and n 2 =1.46.Also calculate how several modes propagate within this fibre

Covert analog signal into digital signal, Covert Analog Signal into Digital...

Covert Analog Signal into Digital Signal A strain gauge is used in Wheatstone Bridge configuration. The output from the Wheatstone Bridge varies from zero to a maximum strain

Explain the operation of the counter, Q. Figure shows the mod-8 counter whi...

Q. Figure shows the mod-8 counter which counts from 010 to 710 before resetting. Explain the operation of the counter and sketch the timing diagram.

What is trans conductance, Q. What is Trans conductance? It is ratio of...

Q. What is Trans conductance? It is ratio of small change in drain current to the corresponding change in the gate-to-source voltage for a constant gate-to-source voltage .it i

Three-phase induction motor, Q. A 60-Hz, six-pole, wye-connected, three-pha...

Q. A 60-Hz, six-pole, wye-connected, three-phase induction motor, with the parameters R 1 = R 2 = 0.025  and Xl 1 = Xl 2 = 0.125 , is controlled by variable-frequency control

Mention the three transistor configurations, Q. Mention The Three Transisto...

Q. Mention The Three Transistor Configurations? The three transistor configurations are 1)Common emitter configuration 2)Common base configuration 3)Common collector c

What are the currents in the high-voltage, Q. A transformer is rated 10 kVA...

Q. A transformer is rated 10 kVA, 220:110 V (rms). Consider it an ideal transformer. (a) Compute the turns ratio and the winding current ratings. (b) If a 2-load resistance

Electromagnet.., force and torque in magnetic field system

force and torque in magnetic field system

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