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

What is the function of the signal in 8086, What is the function of the sig...

What is the function of the signal in 8086? BHE signal means Bus High Enable signal. The BHE signal is made low when there is some read or write operation is carried out. i.e.

Explain conduct insulation resistance test, Explain conduct insulation resi...

Explain conduct insulation resistance test on 100 VA inverter used for mobile and Laptop charging sockets? Ans: The insulation resistance of the inverter shall be calculated w

Magnetic circuits, develop and explain series and parallel magnetic circuit...

develop and explain series and parallel magnetic circuits?

Estimate the maximum number of conversions, Q. The speed of an 8-bit A/D co...

Q. The speed of an 8-bit A/D converter is limited by the counter, which has a maximum speed of 4 × 10 7 counts per second. Estimate the maximum number of A/D conversions per secon

Break over voltage of finger voltage - thyristor , Break over  voltage of...

Break over  voltage of Finger Voltage   The  minimum  forward voltage  when the gate  is opened  at which SCR  starts  conducting  heavily is called  the break over  voltage. To

Determine the voltage across each resistor, For the circuit of Fig: (i) ...

For the circuit of Fig: (i) using Kirchoff's Laws , find all the currents (ii)  determine the voltage across each resistor and check that all loops comply with KVL (iii

Power Engineering, A three-phase transposed line is composed of one ACSR co...

A three-phase transposed line is composed of one ACSR conductor per phase with flat horizontal spacing of 11 meters as shown in Figure (a). The conductors have a diameter of 3.625

Find the expressions for the inductor current, Consider the RL circuit of F...

Consider the RL circuit of Figure with R = 2, L = 5H, and v(t) = V = 20 V (a dc voltage source). Find the expressions for the inductor current i L (t) and the inductor voltage v L

Wheaton bridge with differential amplifier, when strain gauge design give a...

when strain gauge design give accurate measurement on zero and maximum 999kg but not 500kg

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