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

Explain about for loop construct, Q. Explain about For Loop Construct? ...

Q. Explain about For Loop Construct? The loop build causes the for loop to be splitted into portions and portions shared amongst threads in team. The syntax of loop construct

8085 and 8086 in microprocessor, What is the difference among 8085 and 8086...

What is the difference among 8085 and 8086 in microprocessor? Ans) 8086 has a special concept known as memory segmentation. It permits parallel processing, whereas 8085 does no

Current relations in common emitter configuration, Q. What are the Current ...

Q. What are the Current relations in common emitter configuration? In a CB configuration Ie is the input current and Ic is the output current. These currents are relayed throug

Discuss important properties and uses of rubber, Discuss important properti...

Discuss important properties and uses of Rubber. Rubber: It is polymeric material along with high elastic yield strain. The various types of rubber materials are given as-

Calculate the drain current, An n-channel depletion MOSFET, for which I DSS...

An n-channel depletion MOSFET, for which I DSS = 7mA and V P = 4 V, is said to be operating in the ohmic region with drain current i D = 1 mA when v DS = 0.8 V. Neglecting the

Tone used in stronger telephony, Q. Tone used in stronger telephony? Di...

Q. Tone used in stronger telephony? Dial Tone: This tone is used to specify that exchange is ready to accept dialled digits from subscriber. Subscriber must start dialling only

Calculate the e.m.f. generated in armature of a d.c. machine, The armature ...

The armature of a d.c. machine has a resistance of 0.3 and is connected to a 200V supply. Calculate the e.m.f. generated when it is running (a) as a generator giving 80A (b) as a

Determine paper is hygroscopic and absorbent or not, Paper is hygroscopic a...

Paper is hygroscopic and absorbent. This statement is true or false. Ans: Paper is hygroscopic and absorbent. This statement is true.

What are concentrators, Q. What are concentrators? Elucidate how it helps i...

Q. What are concentrators? Elucidate how it helps in connecting number of subscribers. Ans: In rural areas, subscribers are usually dispersed. It is both expensive and unn

Dc machines, importance of critical speed in dc generator

importance of critical speed in dc generator

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