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

Installed in circuit board, Can we measure the resistor if it is installed ...

Can we measure the resistor if it is installed in circuit board? Ans) You can calculate a resistor in a circuit but the circuit will most likely affect the value read (general

How speech is transmitted in digital switching environment, Q. How speech i...

Q. How speech is transmitted in digital switching environment by using PCM/TDM? Ans: A digital carrier system is a communications system which uses digital pulses instead of

Pins and signals , Pins  and Signals As  discussed  earlier that  808...

Pins  and Signals As  discussed  earlier that  8085  microprocessor  chip has 40 pins shown  various  pins  and signals of 8085  microprocessor. All  these  signals can be   c

Explain the working of a single stage rc coupled amplifier, Q. Diagram, exp...

Q. Diagram, explain the construction of a single stage RC coupled amplifier? An RC Coupled amplifier consists of a transistor connected in the emitter configuration with neces

Space communication - application of software defined radio, Space communic...

Space communication - Application of Software Defined Radio Software defined radio can save cost of missions while constructing multiple mode, multiple band radio systems that

What do you mean by time consistent busy hour, Q. What do you mean by Time ...

Q. What do you mean by Time consistent Busy Hour? (i) Busy Hour (ii) Peak Busy Hour (iv) Time consistent Busy Hour  (v) Traffic intensity Ans: (i)  Busy Hour: C

Find the resistor values of rc, Apply the rule-of-thumb dc design presented...

Apply the rule-of-thumb dc design presented in this section for a silicon npn BJT with β = 70 when the operating Q point is defined by I CQ = 15 mA and I BQ = 0.3 mA, with a dc s

Electronics, Let me know if you can help during the test

Let me know if you can help during the test

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