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

Transformers., Calculations of sending line voltage

Calculations of sending line voltage

Selection of right- flex in electricity and gas hazards, Selection of Right...

Selection of Right- Flex : It is also important that the flex we choose is appropriate to the appliance used. Like fuses, the cables and flexes are also rated according to their

Required conditions for connecting two transformers, Q. Required Conditions...

Q. Required Conditions for connecting two transformers in parallel? Ans: a) Voltage rating should be same b) Per unit impedance should be same c) Phase sequence should

Conditions in which rc circuit behaves as differentiator, Q. Explain the co...

Q. Explain the conditions under which an RC circuit behaves as Differentiator Differentiator is a circuit in which the output voltage is directly proportional to the derivative

Basic aspects of electromechanical energy converters, Q. Basic aspects of e...

Q. Basic aspects of electromechanical energy converters? Whereas detailed differences and particularly challenging problems emerge among various machine types, this section bri

Find dispersion relation for free electron, Find Dispersion Relation for Fr...

Find Dispersion Relation for Free Electron Question: Find the dispersion relation for a free electron, and, thus, observe the relation between its rest mass and effective ma

Unconditional return, Unconditional Return RET Instruction: This  instr...

Unconditional Return RET Instruction: This  instruction is used to transfer the program sequence  from subroutine to the calling  program unconditionally. The instruction forma

Sketch the inductor voltage and stored energy, (a) Consider a 5-µH inductor...

(a) Consider a 5-µH inductor to which a current source i(t) is attached, as shown in Figure (b). Sketch the inductor voltage and stored energy as a function of time. (b) Let a v

Explain wireless electromagnetic channels, Q. Explain Wireless electromagne...

Q. Explain Wireless electromagnetic channels? Wireless electromagnetic channels are used in wireless communication systems, in which the electromagnetic energy is coupled to th

Block diagram of a 4-bit shift-right register using jkffs, Q. A shift regis...

Q. A shift register can be used as a binary (a) divide- by-2, and (b) multiply-by-2 counter. Explain. Q. Show a block diagram of a 4-bit shift-right register using JKFFs.

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