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

Why negative feedback is employed in wein bridge oscillator, Q. Why negativ...

Q. Why negative feedback is employed in Wein Bridge Oscillator. Also explain the working of oscillator? The Wein Bridge Oscillator consists of two stages of the RC coupled ampl

Inductor, What will I write in Inductor conclusion

What will I write in Inductor conclusion

What is accelerated graphics port, What is AGP? AGP: The latest additio...

What is AGP? AGP: The latest addition for many computer systems is the inclusion of the accelerated graphics port. This AGP operates at the bus clock frequency of the microproc

Which impurity is added in n-type-semiconductor, In n type semi conductor a...

In n type semi conductor added impurity is (A) Pentavalent.                                (B) Divalent. (C) Tetravalent.                                 (D) Trivalent.

Semiconductors, Why do potential barriers breaks when a breakdown voltage i...

Why do potential barriers breaks when a breakdown voltage is application to semiconductor

What is the mobile application development all about, In the previous two y...

In the previous two years, a lot of innovation has come in the mobile computing world. Apple has launched very imaginative mobile phone, iphone and ipad along with app store. Googl

MATLAB, Future scope on MATLAB in India

Future scope on MATLAB in India

Why fet is a voltage sensitive device, Q. Why FET is a voltage sensitive de...

Q. Why FET is a voltage sensitive device explain from the drain characteristics? The JFET consists of a thin layer of n-type material with two ohmic contacts,the source S and t

Speed and torque control of polyphase induction motors, Speed and Torque Co...

Speed and Torque Control of Polyphase Induction Motors The induction motor is valuable in so many applications because it combines simplicity and ruggedness. Although a good nu

Explain sar instructions in 8086 family, Explain SAR instructions in 8086...

Explain SAR instructions in 8086 family with example and their effect on flag. SAR: Shift each bit of operand right through given number of bits, this instruction shifts eve

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