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 switching switching in telecommunication, Name the switching scheme...

Name the switching schemes used in a digital exchange

Compute the theoretical and practical frequency ranges, Q. For an RG-290/U ...

Q. For an RG-290/U aluminum rectangular wave - guide, a = 58.42 cm and b = 29.21 cm. Compute the theoretical and practical frequency ranges of operation for the guide.

Show maximum common-mode input voltage, Q. Show Maximum Common-Mode Input V...

Q. Show Maximum Common-Mode Input Voltage of amplifier? This is the maximum voltage that the two inputs can be raised above ground potential before the op amp becomes nonlinear

Metering and billing system, Metering and Billing System Previously, y...

Metering and Billing System Previously, you have learnt about various measures for reducing commercial losses of a utility. You have studied in which the metering and billing

Electricity, Describe the nature of electricity

Describe the nature of electricity

What will the slipring voltage be in this case, A four-pole, three-phase, w...

A four-pole, three-phase, wound-rotor induction machine is to be used as a variable-frequency supply. The frequency of the supply connected to the stator is 60 Hz. (a) Let the r

Find the diameter of the antennas, Two stations, located on mountain tops 4...

Two stations, located on mountain tops 40 km apart, communicate with each other using two identical paraboloidal antennas with pencil beam- width of 1°, aperture ef?ciency of 0.8,

Necessary conditions to maintain sustained oscillation, Q. What are the nec...

Q. What are the necessary conditions to maintain sustained oscillation? The use of positive feedback that results in a feedback amplifier having closed-loop gain |Af| greater t

Explain linear versus nonlinear control systems, Q. Explain Linear versus n...

Q. Explain Linear versus nonlinear control systems? Linear feedback control systems are idealized models that are conceived by the analyst for the sake of simplicity of analysi

Role of central and state governments, Role of Central and State Government...

Role of Central and State Governments The subsequent roles of Central and State Governments are envisaged in the Act: The Central Government will Notify rules

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