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

Give the alternate functions for the port pins of port3, Give the alternate...

Give the alternate functions for the port pins of port3? RD - Read data control output. WR - Write data control output. T1 - Timer / Counter1 external input or test pin.

What is the photon flux - focal spot isotropically, Suppose that the x rays...

Suppose that the x rays are emitted from a focal spot isotropically. The photon flux is 3.28 x 10 6 photons mm -2 sec -1 at a distance of 0.75 m from the focal spot. What is the

Determine the resultant line current and power factor, Q. A three-phase loa...

Q. A three-phase load, connected to a 440-V bus, draws 120 kWat a power factor of 0.85 lagging. In parallel with this load is a three-phase capacitor bank that is rated 50 kVAR . D

What do you mean by the term procedure, What do you mean by the term proced...

What do you mean by the term procedure? PROC: The PROC and ENDP directives specify the start and end of a procedure. Such directives force structure while the procedure is cle

Illustrate the satellites in outer space, Illustrate the satellites in oute...

Illustrate the satellites in outer space Satellites in outer space transmit signals to Earth. Computers in vehicles (for example car, airplane or ship) receive and interpret th

Explain the term telecommunication, Question 1 Explain the term telecommun...

Question 1 Explain the term telecommunication and how its implied meaning has changed over time and outline major developments in telecommunication technologies Question 2

Power mosfet - power semiconductor devices , Power MOSFET MOSFET stands...

Power MOSFET MOSFET stands  for metal oxide semiconductor fields  effect transistor.  A power  MOSFET has  three  terminal  drain source  and  gate,. It  is unipolar device  me

Explain keyboard interfacing to 8088 through 8279, Explain keyboard interfa...

Explain keyboard interfacing to 8088 through 8279 . The 8279 is a programmable keyboard and display interfacing component which scans and encodes up to a 64-key keyboard and con

Stator current control methods - motor control , Stator  Current Control ...

Stator  Current Control Methods The torque  and speed  of an induction motor  can be  controlled  by the  stator  current  the motor  behaviour  is different from that with VS

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