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

Multiplexer, design a 32:1 multiplexer using two 16:1 multiplexer

design a 32:1 multiplexer using two 16:1 multiplexer

Power distribution system, Power Distribution System The Distrib...

Power Distribution System The Distribution System contains: - Sub-transmission system in voltage ranges from 33 kV to 220 kV. The energy goes from power subs

Explain the third group of 32 ascii character, Explain the Third Group of 3...

Explain the Third Group of 32 ASCII Character? The third group of 32 ASCII characters is set aside for the upper case alphabetic characters. The ASCII codes for the characters

Explain hexadecimal number system, Q. Explain Hexadecimal Number System? ...

Q. Explain Hexadecimal Number System? A Hexadecimal Number System: uses base 16 includes only the digits 0 through 9 and the letters A, B, C, D, E, and F In the Hexade

Transistor, what is bias compensation

what is bias compensation

Explain internal data bus, Q. Explain Internal Data Bus? Internal Data ...

Q. Explain Internal Data Bus? Internal Data Bus: A bus which operates only within internal circuitry of the CPU, communicating among internal caches of memory which are part of

Full wave rectifier with filter, what is the theory for full wave rectifier...

what is the theory for full wave rectifier with c filter

What is the voltage gain, Q. What is the voltage gain? voltage gain is ...

Q. What is the voltage gain? voltage gain is the ratio of output voltage to input voltage. It is represented as Av,vo-voltage output,Vi-voltage input,Ic-collector current,Ie

Equivalent circuits, Modern complex systems are normally constructed by int...

Modern complex systems are normally constructed by interconnecting sub-units. Therefore the systems engineer is often not too concerned about the details of what is inside these

Coherent psk system, To have the same value of P e , show that E b /N 0 in...

To have the same value of P e , show that E b /N 0 in a coherent-ASK system has to be twice that in a coherent PSK system.

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