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

Monostable delay in matlab, how to implement monostable delay in matlab sim...

how to implement monostable delay in matlab simulink environment? [email protected]

Pneumatics, Design and draw a circuit using the cascade system to operate t...

Design and draw a circuit using the cascade system to operate two cylinders (A and B) which, on the operation of a start valve, produces the sequence A – B + B – A+. The cylinders

Express the waveform of the staircase type, Q. Express the waveform of the ...

Q. Express the waveform of the staircase type shown in Figure as a sum of step functions.

Briefly discuss about cascaded amplifier, Q. Briefly discuss about ‘Cascade...

Q. Briefly discuss about ‘Cascaded Amplifier' using a diagram? Amplifiers are cascaded when the output of the first is the input to the second. The combined gain is whe

Induction motor, principle and operation of 3phace induction motor

principle and operation of 3phace induction motor

Multiplexed address data bus - pins and signals , Multiplexed Address/ Data...

Multiplexed Address/ Data Bus Pins AD 7 - AD) are used for multiplexed address data bus. This bus is bidirectional  input output  and  serves two  purpose. Initially the bus

Logic gates, what component will be use for making or logic gates.

what component will be use for making or logic gates.

Basic & Advance Building Wiring, Hello may i know if it is possible for me ...

Hello may i know if it is possible for me to teach online on electrical maters?

Which material used to made covers of electrical machines, The covers of el...

The covers of electrical machines are made of (A)  Soft magnetic materials.          (B) Hard magnetic materials. (C) Super conductors.                       (D) Semicond

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