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

What do you mean by companding, Q. What do you mean by Companding? In o...

Q. What do you mean by Companding? In order to lower the crest factor of a waveform, so as to produce better performance, a process known as companding is used. It works like a

Ripple voltage amplitude, a) What is meant by Ripple Voltage?  Measure the ...

a) What is meant by Ripple Voltage?  Measure the Ripple Voltage Amplitude, Frequency and DC Offset b) Describe how Ripple Voltage could be decreased.

A, A microstrip antenna system operating at 915MHz must be designed using R...

A microstrip antenna system operating at 915MHz must be designed using Rogers RO3010 substrate with the thickness of 0.635mm.

Lda load accumulator direct instruction, LDA  Load Accumulator Direct Inst...

LDA  Load Accumulator Direct Instruction This instruction is used to copy  data from  memory whose  address is directly specified in the  instruction to th e accumulator. The i

Solar energy, can i use the direct solar energy from solar plate to charge ...

can i use the direct solar energy from solar plate to charge my laptop without a battery

Plagiarised Content, Your site is full of plagiarised content even though y...

Your site is full of plagiarised content even though you claim to be and I quote "Plagiarism Free". You should not be charging for this content, the site and service is a fraud.

Speed control of dc motor - motor control , Speed control of DC Motor ...

Speed control of DC Motor The DC  motor  are versatile motors among the  available  electrical  motors due to  their  superior  characteristics. These motors  give a smooth sp

Why common collector amplifier is known aa emitter follower, Q. Why a commo...

Q. Why a common collector amplifier is called an emitter follower?         When the input voltage goes through its positive half cycle, the output voltage is also seen to go th

Matlab magnetic field, i have an assignment related to magnetic field i ha...

i have an assignment related to magnetic field i have attached the( MRI assignment sheet)[1] please read it carefully in the assignment 2 methods to get the results - one by

Expression for generated emf in a dc generator, Q.   Derive the expression ...

Q.   Derive the expression for generated emf in a dc generator. Ans. Expression for Generated emf in a DC Generator                We shall now derive an expre

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