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

Binary divider, what is the digital logic circuit for binary divider?

what is the digital logic circuit for binary divider?

Instrument, Differentiate between dual beam and dual trace oscilloscope

Differentiate between dual beam and dual trace oscilloscope

What is extended memory system, What is XMS? XMS: The memory system is ...

What is XMS? XMS: The memory system is splits in three major parts as: system area, XMS (extended memory system) and TPA (transient program area). The kind of microprocessor in

Determine the antennas power gain and beamwidth, Q. A paraboloidal antenna ...

Q. A paraboloidal antenna has an aperture ef?ciency of 0.6 and a diameter D = 100λ at 6 GHz. Illumination by the feed is such that the beamwidths of the principal-plane secondary p

Explain working of phase shift oscillator, Explain working of Phase Shift O...

Explain working of Phase Shift Oscillator? Figure shows a phase shift oscillator. Here the combination of ReCe provides self bias for the amplifier. The phase of the signa

Determine the voltage transfer function, Q. Determine the voltage transfer ...

Q. Determine the voltage transfer function of the low pass filter circuit shown in Figure, and find the expression for ω 0 .

What do you mean by negative impedance converter, Q. What do you mean by Ne...

Q. What do you mean by Negative Impedance Converter? The op-amp circuit of Figure causes a negative resistance R in between the input terminal and ground. In the more general

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