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

Drift current and diffusion current, Drift Current and Diffusion Current : ...

Drift Current and Diffusion Current : There are two mechanisms in which electrons and holes move through a semiconductor. One of these is termed as drift and other is diffusi

Discuss electrical properties of insulating materials, Discuss electrical p...

Discuss electrical properties of insulating materials. Electrical properties of an insulating material are As Follows: Insulation resistance - It is the property, through

Design of a p only controller, For an operating point half way up the paral...

For an operating point half way up the parallel section and the discharge valve and the discharge fully open, design a proportional only controller which will give closed loop dyna

Draw and explain an rc integrator, Q. Draw and explain an RC integrator, wi...

Q. Draw and explain an RC integrator, with equations RC Integrator is a low pass RC circuit in which the output is taken across capacitor. The low pass RC circuit gives conside

Semiconductor, What is the similarities between a vacuum diode and a triode...

What is the similarities between a vacuum diode and a triode?

Thevenins theorem, advantages and disadvantages of thevenins theorem

advantages and disadvantages of thevenins theorem

DLD, DESIGN SR LATCH WITH UNIVARSAL LOGIC GATES.DRAW AND EXPLAIN THE LOGIC ...

DESIGN SR LATCH WITH UNIVARSAL LOGIC GATES.DRAW AND EXPLAIN THE LOGIC DIAGRAMS

Fulfilled to sustain the oscillations, Q. What are the conditions required ...

Q. What are the conditions required to be fulfilled to sustain the oscillations? The conditions required to be fulfilled to sustain the oscillations are: 1. The loop gain mu

What is meant by doping, What is meant by doping? How does it affect a semi...

What is meant by doping? How does it affect a semiconductor? Doping: The process through which an impurity is added to semiconductor is termed as doping. A semiconductor to th

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