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

Compare mosfet with jeft, Compare MOSFET with JEFT ? a. In enhancement ...

Compare MOSFET with JEFT ? a. In enhancement and depletion types of MOSFET, the transverse electric field induced across an insulating layer deposited on the semiconductor mate

Draw the implementation of time invariant system, Draw the implementation o...

Draw the implementation of time-invariant system A linear time-invariant system is described by the difference equation: y[n] = 2x[n] - 3x[n - 1] + 2x[n - 2]   Draw the i

Explain about floating point numbers, Q. Explain about Floating Point Numbe...

Q. Explain about Floating Point Numbers? The IEEE Standard 754 floating point is the most common representation today for real numbers on computers. There are numerous ways

Light triggering - power semiconductor devices , Light Triggering Whe...

Light Triggering When  light is  thrown  on silicon the hole electron pair get excited an increases hence  the leakage  current of J 2   increases which  will increase I C1 a

Radio over Fiber, I need to get a summary for a radio over fiber paper that...

I need to get a summary for a radio over fiber paper that I have , the summary need to be on the following format: abstract, introduction,methodology,results, conclusion and refere

Explain sampling at the nyquist rate, Explain Sampling at the Nyquist Rate?...

Explain Sampling at the Nyquist Rate? What would happen if we reduced the sampling frequency? In the time domain, we would be getting less samples for each period. In the frequ

Explain the bidirectional shift registers, Explain the Bidirectional Shift ...

Explain the Bidirectional Shift Registers? A Reversible or A Bidirectional shift register is one in which the data can be shift either left or right. D flip-flops are used by

#DSP ., #The requirement is as follows- There is a signal which is in the r...

#The requirement is as follows- There is a signal which is in the range of 0 to 5Hz. This signal frequency composition is to determined. The resolution of the determination is 1Hz.

Explain the different types of polarizations, Explain the different types o...

Explain the different types of polarizations. Polarizations are of three types. i. Electric polarization ii. Ionic polarization. iii. Dipolar polarization.

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