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

Transistor Amplifier, I need help designing a BJT amplifier with that meets...

I need help designing a BJT amplifier with that meets the following parameters: voltage gain greater than 300, Ic(Vce=0)=2uA, Vcc=20V.

Benefits of digital systems, Q. Show Benefits of digital systems? Ever ...

Q. Show Benefits of digital systems? Ever since most digital systems have only two possible states, there is high degree of accuracy in the transmission of data. With an analog

Senior Design Robotic Arm Project, This is basically a simple senior design...

This is basically a simple senior design project where the professors are giving us a limited budget and providing us with an Arduino Board. (We can use rasberry pi, beagle bone, e

Find the real and reactive powers per phase, Q. A 345-kV, 60-Hz, three-phas...

Q. A 345-kV, 60-Hz, three-phase transmission line delivers 600 MVA at 0.866 power factor lagging to a three-phase load connected to its receiving- end terminals. Assuming that the

Use delta-wye transformation for network reduction, 1555_Use delta-wye tran...

1555_Use delta-wye transformation for network reduction.png what is the solution to this particular problem?

What are magnetic materials, Magnetic materials (A) provide path to ma...

Magnetic materials (A) provide path to magnetic flux. (B) are good insulators. (C) are semiconductors. (D) None. Ans: Magnetic materials provide path to

Binary codes, what are the types of binary codes

what are the types of binary codes

Derating factor, Conductors with a temperature rating of 75 degrees C are r...

Conductors with a temperature rating of 75 degrees C are run in an area with an ambient temperature of 55 degrees C. What would be the de-rating factor that should be applied?

Transistors, what is transistor how it works?

what is transistor how it works?

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