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

Explain about rotating machines, Q. Explain about Rotating Machines? Th...

Q. Explain about Rotating Machines? Themost widely used electromechanical device is a rotatingmachine, which utilizes themagnetic field to store energy. The main purpose of mos

Find out which of the two motors, Find out which of the two motors: Tw...

Find out which of the two motors: Two three-phase induction motors while connected across a 400 V, 50 Hz supply are running at 1440 and 940 RPM respectively. Find out which of

Determine the i-v characteristic of the network, Determine the i-v characte...

Determine the i-v characteristic of the network shown in Figure by the use of breakpoint analysis.

Discuss classification of conducting materials, Discuss classification of c...

Discuss classification of conducting materials into low resistivity and high resistivity materials. Conducting materials are categorized as low resistivity materials and high r

D flip flop - introduction to microprocessors, D Flip Flop As we have ...

D Flip Flop As we have seen  in the SR flip flop  when the inputs  S= R  are applied the forbidden or indeterminate state occurs.  This state can destabilize the SR file flop.

What do you understand by progressive control, Q. What do you understand by...

Q. What do you understand by progressive control? Progressive Control: Step by step system is an example of progressive control. The connection is set up in stages, in response

Complete the timing diagram of an sr latch, Complete the timing diagram of ...

Complete the timing diagram of Figure of an SR latch.

Complex programmable logic device, The small electronics consultancy compan...

The small electronics consultancy company that you work for has been commissioned to design a portable mixed signal heart rate monitor unit for the National Health Service. You hav

Find an expression for the power absorbed by the load, Q. For the circuit o...

Q. For the circuit of Figure: (a) Find an expression for the power absorbed by the load as a function of RL. (b) Plot the power dissipated by the load as a function of the lo

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