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

Deviations from purchasing power parity, Q. Does the existence of non-trada...

Q. Does the existence of non-tradable goods allow for deviations from Purchasing Power Parity? Answer: Yes the continuation of non-tradable goods permits deviations from Purch

Show steady-state sinusoidal analysis with pspice, Q. Show Steady-State Sin...

Q. Show Steady-State Sinusoidal Analysis with PSpice PSpice can easily solve steady-state ac circuits for currents and voltages. Ac voltage sources, which must begin with the l

#title.superposition theorem, .coments on the limitation of the superpositi...

.coments on the limitation of the superposition theorem

Determine the mmf of the exciting coil, Q. For themagnetic circuit shown in...

Q. For themagnetic circuit shown in Figure, neglecting leakage and fringing, determine the mmf of the exciting coil required to produce a flux density of 1.6 T in the air gap. Them

Analogue and digital, 1. Pattern recognition A synchronous sequential machi...

1. Pattern recognition A synchronous sequential machine is to generate 1 on output z after the next clock pulse whenever the bit sequence on input x has exactly two 0’s in the last

Explain classification of energy band materials, With the help of energy ba...

With the help of energy bands explain how conduction takes place in conductors, semiconductors and insulators. On the basis of energy band materials are categorized as insulato

Determine the active - reactive and apparent power, Determine the active - ...

Determine the active - reactive and apparent power: In the given circuit, determine the active, reactive and apparent power. Figure Solution  The inductive

Calculate the time to get the voltage across the capacitor, 1. The circuit...

1. The circuit below will be most efficiently analyzed by obtaining the Thevenin equivalent circuit for the circuit to the left of the points (a-b) on the schematic. The capacitor

Circuits I homework, This problem is with circuits. It is basic circuit pro...

This problem is with circuits. It is basic circuit problem. I need a very detailed step by step on how we arrived at the solutions. Only respond if you are 100% sure on your answer

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