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

Digital control system, a digital computer controlled rolling mill regulato...

a digital computer controlled rolling mill regulator system..

Explain classification of amplifiers on biasing conditions, Q. Explain the ...

Q. Explain the classification of amplifiers on the biasing conditions? Based on the amount of transistor bias and amplitude of the input signal, amplifiers can be classified as

Compute the real power inductive load, Q. A 60-Hz, 440-V, three-phase syste...

Q. A 60-Hz, 440-V, three-phase system feeds two balanced wye-connected loads in parallel. One load has a per-phase impedance of 8 + j3  and the other 4 - j1 . Compute the real po

Mobile and wirelss communicatio, In a CDMA system, the signal is spr...

In a CDMA system, the signal is spread over a large bandwidth by multiplying the transmitted symbol by a sequence of short pulses, also called chips. The

Analysis on solar charging system buck converter with VMC, PLS WRITE THE IN...

PLS WRITE THE INTRODUCTION, METHODOLOGY AND LITERATURE REVIEW

Explain how materials can be classified in three groups, Explain how materi...

Explain how materials can be classified into three groups on the basis of atomic structure. An atom has a positively charged nucleus surrounded through a group of negatively ch

Explain about the term embedded system, Explain about the term embedded sys...

Explain about the term embedded system. An embedded system is a system which has software embedded within computer-hardware that makes a system dedicated for an application(s)

Find the power amplification, The constants of an amplifier are given by A ...

The constants of an amplifier are given by A = 1, R i =10,000, and R o = 100. It is driven by a Thévenin source with v Th (t) = V O cos ωt and R Th = 20,000 . The amplifier o

Calculate the thermal velocity of an electron, Question: a) Describe t...

Question: a) Describe two mechanisms by which electrons can be excited from the valence band to the conduction band? b) Given that the direct-band gap energy for Gallium N

Flexible manufacturing systems, (a) What are the elements of Flexible Manuf...

(a) What are the elements of Flexible Manufacturing Systems? (b) What are the basic types of workstations typically found in an FMS. Describe them briefly?

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