Change of phase, Electrical Engineering

Assignment Help:

Write an m-file "myfourier.m" which takes two images, computes FFT, phase and amplitude and swaps the amplitudes between two images.

function myfourier
im1=imread('cameraman.png');
imd1=double(im1); 
im2=imread('class_f.png');
imd2=double(im2);

FI1=fft2(imd1);
phase1=angle(FI1);
amplitude1=abs(FI1);

FI2=fft2(imd2);
phase2=angle(FI2);
amplitude2=abs(FI2);

NFI1=amplitude1.*exp(i*phase1);
NFI2=amplitude2.*exp(i*phase2);
RI1=ifft2((NFI1));
RI2=ifft2((NFI2));

figure;imshow(real(RI1),[]);
figure;imshow(real(RI2),[]);

NFI1=amplitude1.*exp(i*phase2);
NFI2=amplitude2.*exp(i*phase1);
RI1=ifft2((NFI1));
RI2=ifft2((NFI2));
figure;imshow(real(RI1),[]);
figure;imshow(real(RI2),[]);

What information is encoded in the amplitude and phase?
How the change of phase and amplitude affects the transformed image?


Related Discussions:- Change of phase

Chemistry, write a short note on Scale

write a short note on Scale

Show that the force exerted on each charge, Q. Consider two 1-C charges sep...

Q. Consider two 1-C charges separated by 1 min free space. Show that the force exerted on each is about one million tons.

Cross section of nmos with channel formed: on state, Cross Section of NMOS ...

Cross Section of NMOS with Channel Formed: ON state A metal-oxide-semiconductor field-effect transistor (MOSFET) is based upon the modulation of charge concentration through a

Transistor, can you differentiate the alpha,beta and gamma

can you differentiate the alpha,beta and gamma

Performance benchmarking through indicators, Performance Benchmarking throu...

Performance Benchmarking through Indicators There are various indicators techniques for benchmarking. It is also not probable to benchmark all the indicators, collect and ana

Illustrate inverting operational amplifier, (a) Give the characteristics of...

(a) Give the characteristics of ideal OP-Amp? (b) Illustrate inverting operational amplifier with feedback. get the expression for voltage gain with feedback? Write short not

Find the new operating point in transistor, Q. A transistor in a fixed bias...

Q. A transistor in a fixed bias amplifier circuit was replaced by another transistor of beta equaling 150 instead of 60.if IB of transistor is equal to 100 microampere and collecto

Explain magnetostriction, Explain Magnetostriction. Magnetostriction: I...

Explain Magnetostriction. Magnetostriction: If ferromagnetic materials are magnetized a small change of dimensions of the material obtains place. There is a small extension alo

Positive and negative clippers, Positive Clippers The shunt connected p...

Positive Clippers The shunt connected positive clipper, in which the diode conducts for positive half cycle and hence, the output is a straight line. During the negative half c

What are the different types of distributing frames, Q. What are the differ...

Q. What are the different types of distributing frames used in exchanges? Ans: Different distribution  frames  used  in  exchange  are  displayed in  figure.  Each subscribe

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