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

Earth leakage-earthing, Earth Leakage : Earth leakage takes place when, th...

Earth Leakage : Earth leakage takes place when, through some fault in an appliance or its connections. Electric current escapes to earth i.e. the body of the appliance become 'liv

3 phase meter, What is reading mechanism of a 3 phase meter?

What is reading mechanism of a 3 phase meter?

Program analysis , Program Analysis We have to find the greater of two...

Program Analysis We have to find the greater of two given  number. We  can store the given  numbers  in two  different  registers ( suppose register A and B). Then we will com

Single-axis autopilot control system of an aircraft, Q. Single-axis autopil...

Q. Single-axis autopilot control system of an aircraft? Figure (a) shows the block diagram of a simplified single-axis (pitch, yaw, or roll) autopilot control systemwith digita

Where does cpu enhanced mode originate from, Intel's 80386 was the first 32...

Intel's 80386 was the first 32-bit processor, and as the company had to backward-support the 8086. All the modern Intel-based processors run in the improved mode, capable of switch

Sonic harassment, Sir I would like to find a sensor that can detect beams ...

Sir I would like to find a sensor that can detect beams from the phasor painfield generator and the sonic devasator (devices of this nature). These sonic devices emit a high pres

Wye-delta transformation., what is the literature review about wye delta tr...

what is the literature review about wye delta transformation?? for 3 paragraphs atleast*

Fourier deconstruction, Find the Fourier series as far as the third harmoni...

Find the Fourier series as far as the third harmonic, to represent the periodic function y, given by the values in the following table. x 0 o 30

How phase angle measurement are carried out, Q.   Explain how phase angle m...

Q.   Explain how phase angle measurement are carried out with vector impedance meter.     Sol. Impedance measurements are concerned with both the magnitude (Z) and the phase

OSCILLATORS, DESIGN A WIEN OSCILLATOR THAT OSCILLATE AT 25KHZ

DESIGN A WIEN OSCILLATOR THAT OSCILLATE AT 25KHZ

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