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

Write shorte note on carbon, Write shorte note on Carbon. Carbon: The...

Write shorte note on Carbon. Carbon: The rate of commutator wear in electrical machines is greatly decreased by using brushes made of carbon. Carbon (C) is also used in autom

What is inductance, What is Inductance Inductance - the property of a...

What is Inductance Inductance - the property of an electric circuit by which an electromotive force is induced in it as the result of altering magnetic flux.  Electromagn

Define transconductance, Q. Define Transconductance? The control that t...

Q. Define Transconductance? The control that the gate voltage has over the drain current is measured by the transconductance gfs and is similar to the transconductance  gm of t

Programming languages - introduction to microprocessors , Programming langu...

Programming languages As we  have seen  the evolution of computer  hardware  similarly  programming  languages also  have their  history  of development from  machine  language

Calculate the gain and phase response of fir digital filter, Calculate the ...

Calculate the gain and phase response of an FIR digital filter Calculate the gain and phase response of an FIR digital filter as in below Figure with A 0 = 1, A 1 = 2, A 2 =

Sinusoidal steady-state phasor analysis, Q. Sinusoidal steady-state phasor ...

Q. Sinusoidal steady-state phasor analysis? The kind of response of a physical system in an applied excitation depends in general on the type of excitation, the elements in the

What is meant by thermal runaway, Q. What is meant by Thermal Runaway? Expl...

Q. What is meant by Thermal Runaway? Explain with reference to a transistor.How is it avoided in circuits? The collector current of a transistor increases with increasing tempe

Assigment, what is p-n junction and how its work

what is p-n junction and how its work

Motor: power production, The mechanical power produced at the armature of a...

The mechanical power produced at the armature of a motor is: P = T a . (power is in watts if torque is N.m and    in rad/sec). Some of this will be lost due to friction and

Show the process for taking observations by satellite, Q. Show the Process ...

Q. Show the Process for taking observations by satellite? Sensors are devices to make observations, which have sophisticated mechanism for taking observations. The detectors ar

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