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

What is the importance of rs232-c in serial communication, What is the impo...

What is the importance of RS232-C in serial communication? RS-232 that is Recommend Standard number 232 and C is the new revision of the standard. The serial ports on main comp

Explain the conductyvity of atom with four valence electrons, Atoms with fo...

Atoms with four valence electrons are good conductors. This statement is true or false. Ans:  Atoms are good conductors with four valence electrons. This statement is false.

Compute the maximum flux passing through the coil, Q. The 50-turn coil in t...

Q. The 50-turn coil in the configuration of Figure is rotated at a constant speed of 300 r/min. The axis of rotation is perpendicular to a uniform magnetic flux density of 0.1 T. T

Explain what is doping, What is meant by doping? Doping: Semiconduct...

What is meant by doping? Doping: Semiconductors in its extremely pure form are termed as intrinsic semiconductor such intrinsic semiconductor to which several suitable impur

Illustrate the detroit type of automation, Discuss different kinds of Autom...

Discuss different kinds of Automation and their Advantages? Illustrate the Detroit type of Automation? Discuss basic Principles and strategies automation? Discuss the industries

Difference among microprocessor and microcontroller, In Microprocessor more...

In Microprocessor more op-codes, few bit handling instructions. But in Microcontroller: fewer op-codes, more bit handling Instructions, and also it is described as a device that ha

Biasing clamper, Ask question #Minwhat is biasing of clamper imum 100 words...

Ask question #Minwhat is biasing of clamper imum 100 words accepted#

What is thermal runaway, Q. What is thermal runaway? State one method to pr...

Q. What is thermal runaway? State one method to prevent the same? The effect of changes in leakage current (ICO)  and current gain(b) on the dc bias point is given by the equat

Breifly explain abrasive jet machining, Breifly explain abrasive jet machin...

Breifly explain abrasive jet machining in Briefly explain the following key terms in electrochemical machining (a) Electrolytes (b) ECM tooling techniques with suitable ex

Rankine cycle and modified rankine cycle, Discuss in detail the several ene...

Discuss in detail the several energy resources and their availability. How does a Rankine cycle differ from a modified Rankine cycle? Write down the mathematical expression of m

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