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

Describe common-mode rejection ratio, Q. Describe Common-Mode Rejection Rat...

Q. Describe Common-Mode Rejection Ratio ? When there is a common-mode input voltage, i.e., when the input signals are equal and greater than zero, the output voltage of an idea

DC motor, why DC motors use field winding instead of armature winding

why DC motors use field winding instead of armature winding

Revision of basics, Revision  of Basics Although  it is  assumed in th...

Revision  of Basics Although  it is  assumed in this book  that the  reader has  enough  knowledge of  various number systems ( binary, octal and hexadecimal and their relation

Modern AC Generators, What are the advantages of modern ac generators and I...

What are the advantages of modern ac generators and Integrated Drive Generators? There are two questions here. I''d really like it if somebody could help me. I''m an AE student.

Determine the maximum value of the voltage, Q. Three waveforms seen on an o...

Q. Three waveforms seen on an oscilloscope are shown in Figure. If the horizontal scale is set to 50 ms per division (500 ms for the entire screen width), and the vertical scale is

What is capacitance, What is Capacitance -  Capacitance is explained to...

What is Capacitance -  Capacitance is explained to be the amount of charge Q stored in among the two plates for a potential difference or voltage V existing across the plates.

Different types of dc generation, Q.   What are the different types of dc g...

Q.   What are the different types of dc generation according to the ways in which fields are excited. Show the connection diagram of each type. Ans. Types of D.C.

One byte instructions , One byte Instructions One byte  instruction i...

One byte Instructions One byte  instruction include  both the opcode  operand in the  same byte. To identify  one byte  instruction one  must  observe followings  things .

Explain sampling and pulse modulation, Q. Explain Sampling and Pulse Modula...

Q. Explain Sampling and Pulse Modulation? In most analog circuits, signals are processed in their entirety. However, in many modern electric systems, especially those that conv

Branch operations , Branch Operations Normally  the program  executes ...

Branch Operations Normally  the program  executes in  a sequence. The contents of the program counter register are incremented by  one during  the execution  of current  instr

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