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

Bcd to excess 3 code converter, What are the industrial applications of the...

What are the industrial applications of the project bcd to excess 3 code converter?

Microcontroller, Project Garage door opener with password. Wrong password ...

Project Garage door opener with password. Wrong password "door close" on lcd screen, correct password "door open" on lcd Screen no need the motor. Material used - Microcontroller

Explain the test instruction, Explain the TEST instruction. TEST: The T...

Explain the TEST instruction. TEST: The TEST instruction executes the AND operation. The difference is as the AND instruction changes the destination operand, whereas the TEST

Describe common-mode rejection ratio, Q. Describe Common-Mode Rejection Rat...

Q. Describe Common-Mode Rejection Ratio ? When there is a common-mode input voltage, i.e., when the input signals are equal and greater than zero, the output voltage of an idea

Solutions of question bank needed urgent, Need answers of a question bank o...

Need answers of a question bank of power electronics . It is an assignment. Urgent

Determine the equivalent inductance, Determine the equivalent inductance: ...

Determine the equivalent inductance: Two coils of inductances 4H and 6H are connected in parallel. If their mutual inductance is 3 H, determine the equivalent inductance of th

Scr, what is finger voltage?

what is finger voltage?

Show that operating point does not depend on beta, Q. Prove mathematically ...

Q. Prove mathematically that the operating point does not depend on beta, in a potential divider bias circuit ? To determine the operating point, consider the input section of

Calculate the magnetic flux in the core, Q. A toroid with a circular cross ...

Q. A toroid with a circular cross section is shown in Figure. It is made from cast steel with a relative permeability of 2500. The magnetic flux density in the core is 1.25 Tmeasur

Explain branch prediction logic in pentium, Explain Branch prediction logic...

Explain Branch prediction logic in Pentium. Branch prediction logic in Pentium: The Pentium microprocessor utilizes branch prediction logic to decrease the time needed for a

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