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

Overall performance indicator method, Overall Performance Indicator Method ...

Overall Performance Indicator Method Overall Performance Indicator could be derived from a combination of few of the specific core indicators. The way this combination is comm

Explain about common control switching system, Q. Explain about Common Cont...

Q. Explain about Common Control Switching System? Common Control Switching System: A functional block diagram of a common control switching system is displayed in Figure. Contr

Operation of zener diode, Operation of Zener Diode The Zener diode's o...

Operation of Zener Diode The Zener diode's operation depends upon the heavy doping of its p-n junction permitting electrons to tunnel from the valence band of the p-type mater

Discuss all the five software interrupt instructions, Discuss all the five ...

Discuss all the five software interrupt instructions. The INTEL family microprocessor consist of software interrupts INT, INT0, INT3 and BOUND and IRET. Out of all these five

Bjt amplifiers, Explain the working of BJT Amplifiers? The purpose of e...

Explain the working of BJT Amplifiers? The purpose of electronic amplifiers is essentially to increase the amplitude and power of a signal so that either useful work is done or

Hlt halt instruction , HLT Halt Instruction The microprocessor halts  ...

HLT Halt Instruction The microprocessor halts  the execution  of the  program and enters into  the wait  state  the address  and data bus are placed in the  high  impedance st

Automatic meter reading and remote meter reading, Automatic Meter Reading a...

Automatic Meter Reading and Remote Meter Reading Automatic Meter Reading (AMR) and Remote Meter Reading (RMR) elaborate several systems which permit meters to be checked with

Magnitude comparator, circuit diagram of 2 bit magnitude comparator

circuit diagram of 2 bit magnitude comparator

Describe small signal fet and its characteristics, Q. Describe small signal...

Q. Describe small signal FET.What are its characteristics? Small signal FET is the FETs used for amplification. The linear characteristic of FET is used for this purpose The in

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