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

Mr Aucamp , How can I get an oscillator to genarate a sinusoid instead of a...

How can I get an oscillator to genarate a sinusoid instead of a triangle wave

Explain the meaning of amplitude modulation, a. Explain the meaning of ampl...

a. Explain the meaning of amplitude modulation? Show that the AM output having two sidebands and the carrier frequency. b. Illustrate that the equivalent parallel impedance of a

Explain standby mode of operation in spc organization, Q. Explain Standby m...

Q. Explain Standby mode of operation in SPC organization? Standby mode of operation is the simplest of dual processor configuration operations. Generally one processor is activ

Laplace transform method, Consider the circuit shown in Figure (a) in which...

Consider the circuit shown in Figure (a) in which the switch S has been in position 1 for a long time. Let the switch be changed instantaneously to position 2 at t = 0. Obtain v(t)

Block diagram convert into Electrical Circuit, i have block diagram and i n...

i have block diagram and i need to convert it into Electrical circuit and on electrical circuit need to apply state space method.

Push psw instruction , PUSH PSW Instruction It is similar to above  pu...

PUSH PSW Instruction It is similar to above  push  instruction but instead of normal  register Paris it use PSW as its  operand. Program status  word comprises of  the content

Works, Microprocessor and its Applications

Microprocessor and its Applications

Determine power gain, Q. An antenna has an aperture area of 10 m 2 ,an ape...

Q. An antenna has an aperture area of 10 m 2 ,an aperture ef?ciency of 0.6, and negligible losses. If it is used at 5 GHz, determine: (a) Its power gain. (b) The maximum pow

Visible light communication project, I need a project in visible light comm...

I need a project in visible light communication with matlab design.

Show function of compensating plate in interferometer, Q. Show Function of ...

Q. Show Function of Compensating Plate in interferometer? In absence of plate G2 the reflected ray passes the plate G1 twice, whereas the transmitted ray does not passes even o

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