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

Storage delay and transistor alpha- beta, Turn-on, turn-off, and storage de...

Turn-on, turn-off, and storage delay: The Bipolar transistor shows a few delay characteristics while turning on and off. Most of the transistors, and particularly power transi

Realize various dividers in the schematic representation, Q. Counters are u...

Q. Counters are used to realize various dividers in the schematic representation of the digital clock shown in Figure. The blocks labeled "logic array" are logic gate combinations

Cmp compare instruction , CMP Compare Instruction This instruction is ...

CMP Compare Instruction This instruction is used to compare the contents  of register  or memory  with accumulator the contents of the operand remain  unaffected. There are tw

Operating system, what is serveces of operating system?

what is serveces of operating system?

Determine the dielectric constant of slab, Determine the Dielectric constan...

Determine the Dielectric constant of slab: An air capacitor contains two parallel plates 10 cm 2 in area and 0.5 cm apart. While a dielectric slab of area 10 cm2 and thicknes

Counters, i need a counter of following o/p truth table 00000000 10000000 1...

i need a counter of following o/p truth table 00000000 10000000 11000000 11100000 11110000 11111000 11111100 11111110 11111111 00000000 10000000 . . . so please suggest me some IC

Control systems design, You are to choose a particular application, model a...

You are to choose a particular application, model and simulate it using MATLAB and or SIMULINK. 1. Modelling 2. Testing and verification of the model 3. Demonstration o

Power system model, #i have an error at in the Matlab power system model..t...

#i have an error at in the Matlab power system model..thus i couldn''t run it...

What are the precautions to be taken, What are the precautions to be taken ...

What are the precautions to be taken before basic work on electrical installations? Ans: Before starting any electrical works on installations disconnect the power supply to

Shocly equation, I need to prove of shockly diode equation

I need to prove of shockly diode equation

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