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

Compute the area of each plate, Q For a parallel-plate capacitor with plate...

Q For a parallel-plate capacitor with plates of area A m 2 and separation d m in air, the capacitance in farads may be computed from the approximate relation Compute the a

Determine the current in the series circuit, Q. (a) Let a unit impulse of v...

Q. (a) Let a unit impulse of voltage v(t) = δ(t) be applied to a series combination of R = 20 and L = 10 mH. Determine the current i(t)in the series circuit. (b) Repeat (a) for

Planned and coordinated development - rural electrification, Planned and co...

Planned and coordinated development: The CEA would prepare the global Electricity Plan after carefully carrying out the demand forecast in consultation along with stakeholders

Ampere''s law, This is at the heart of the analysis of electromagnetics. It...

This is at the heart of the analysis of electromagnetics. It is based on a series of experiments conducted by the French scientist Ampere (1775 - 1836), in which the force between

Illustrate flat plate collectors, What is the use of basic earth-sun angles...

What is the use of basic earth-sun angles? Show by mean of diagram. Illustrate sun as source of energy with relevant data? Illustrate flat plate collectors. Describe liquid f

What is dtmf dialling, Q. What is DTMF dialling? DTMF dialling 1. ...

Q. What is DTMF dialling? DTMF dialling 1.  Uses push buttons 2.  Uses 8 different frequencies in pairs. 3.  16 different characters can be represented. 4.  The f

Explain the time division space switching, a. Explain the time division spa...

a. Explain the time division space switching b. Verify the execution complexity of 2048 channel TST switch with 16 TDM links and 128 channels. Let the time slot of space switch

3rd year electrical/electronics project, I`m a 3rd year electrical engineer...

I`m a 3rd year electrical engineering student studying in Canada, and there is a new course they added in my university for 3rd year students called Engineering Project. from the

Magnetism and mahnetic materials, I have to make assignment of about the to...

I have to make assignment of about the topic Magnetism and magnetic materials. I don''t know how I will prepare this assignment. Please give me some instructions about this.

Define the x-nor or exclusive-nor gate, Define the X-NOR or Exclusive-NOR G...

Define the X-NOR or Exclusive-NOR Gate?   This is the EX-OR gate with the output inverted, as shown by the 'o' on the output and the output Q is true if inputs A and B a

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