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

Briefly explain about phasor method, Q. Briefly explain about Phasor Method...

Q. Briefly explain about Phasor Method? For sinusoidal excitations of the same frequency, the forced or steady-state responses are better found by the technique known as the ph

Fet parameters, FET Parameters A basic, low-frequency hybrid-pi model ...

FET Parameters A basic, low-frequency hybrid-pi model for the MOSFET is displayed in figure. The several parameters are as follows. is the transconductance in siemens

Show crystal - oscillator circuits, Q. Show Crystal - Oscillator Circuits? ...

Q. Show Crystal - Oscillator Circuits? The simplest crystal-oscillator circuit is shown in Fig. 6-2A. An equivalent circuit is shown in Fig. 6-2B., where C4 represents the grid

Potentiometers , Which potentiometer do I need to control; 6v 2amps dc?

Which potentiometer do I need to control; 6v 2amps dc?

Torque required to turn a self excited generator, Work must be done against...

Work must be done against the electromagnetic torque in order to generate the voltage (and current) supplied to the electrical load connected to the generator. Therefore energy con

Find the effective noise temperature, Q. An antenna with an effective noise...

Q. An antenna with an effective noise temperature of 130 K couples through a waveguide that has a loss of 0.8 dB to a receiver. Find the effective noise temperature presented by th

Battery service provider system specification, The vehicle batteries shall ...

The vehicle batteries shall be owned by the battery service provider. The automobile battery shall be recyclable, environmentally friendly, and safe. The battery service pr

Transfer function of time multiplexer, How wood a transfer function of a ti...

How wood a transfer function of a time-multiplexer with switching in 10 kHz between 2 channels look like?

Diode, Hi all i want a conclusion for V-I characteristic curve of Silicon D...

Hi all i want a conclusion for V-I characteristic curve of Silicon Diode (I) using Oscilloscope

Compute the worst voltage regulation, Q. The following data were obtained o...

Q. The following data were obtained on a 25- kVA, 2400:240-V, 60-Hz, single-phase distribution transformer: • Open-circuit test with meters on LV side: 240 V, 3.2 A, 165 W •

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