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

Explain global positioning systems, Q. Explain Global Positioning Systems? ...

Q. Explain Global Positioning Systems? Modern communication systems abound in practice: cellular phones, computer networks, television satellites, and optical links for telepho

Determine the 60-hz resistance of line, Q A handbook lists the 60-Hz resist...

Q A handbook lists the 60-Hz resistance at 50°C of a 900-kcmil aluminumconductor as 0.1185/mile. If four such conductors are used in parallel to form a line, determine the 60-Hz r

What is barkhausen criterion, Q. What is Barkhausen criterion? Why is the v...

Q. What is Barkhausen criterion? Why is the value of Ab kept slightly greater than 1? The condition |Ab| = 1 is called the Barkhausen criterion. It implies that when |Ab| = 1,

Explain the configuration of a step-by-step switching system, With neat dia...

With neat diagrams explain the configuration of a step-by-step switching system. Schematic diagram for such an exchange is given in Figure.  Every subscriber is connected to a

Basic specifications of a ujt, The very basic specifications of a UJT are: ...

The very basic specifications of a UJT are: Vbb(max) - The maximum interbase voltage that can be applied to the UJT (b) Rbb-the interbase resistance of the UJT (c) n - The

Circuit realization of the srff, Q. You are to construct a modified truth t...

Q. You are to construct a modified truth table for the circuit realization of the SRFF shown in Figure. As indicated in the text, you guess an output and then go back ato check it

Explain numeric processor 8087, Explain numeric processor 8087. Numeric...

Explain numeric processor 8087. Numeric processor 8087 is a coprocessor which has been intended to work under the control of the processor 8086 and offer it additional numeric

Determine the flux density in lines, Question : (a) List the six basic ...

Question : (a) List the six basic quantities and units as used in the SI systems of units and give their respective symbols (b) A flux density in the CGS system is expressed

Amplifiers, what is the use of capacitors in amplifiers

what is the use of capacitors in amplifiers

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