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 operation performed by instruction OUT47 h, Describe the operation...

Describe the operation performed by the instruction OUT 47 h, AL. This transfers the content of AL to I/O port 47h. See that I/O port number shows as 0047h on the 16 bit addres

Draw the energy diagram of a pn junction, Question: a). Draw the energy...

Question: a). Draw the energy diagram of a pn junction: (i) at thermal equilibrium, (ii) when a forward bias with magnitude half the built in potential (V = φk/2) is applie

What is meant by microcontroller, What is meant by microcontroller? A d...

What is meant by microcontroller? A device which having the microprocessor with integrated peripherals like memory, serial ports, parallel ports, timer/counter, interrupt contr

8. A road 300 m long is required to be illuminated b, Ask questio8. A road ...

Ask questio8. A road 300 m long is required to be illuminated by providing 40W fluorescent lamps. The width of the road is 4m. Design a street lighting scheme for obtaining minimu

Digital logical disign, design SR latch with universal logic gates.draw and...

design SR latch with universal logic gates.draw and explain the logic diagrams

Explain electrical contact materials, Explain electrical contact materials....

Explain electrical contact materials. Electrical contact materials: some elements, in their relatively pure forms as copper, nickel, molybdenum, palladium, silver, tungsten and

Fulfilled to sustain the oscillations, Q. What are the conditions required ...

Q. What are the conditions required to be fulfilled to sustain the oscillations? The conditions required to be fulfilled to sustain the oscillations are: 1. The loop gain mu

What are the functional types used in control words of 8251a, What are the ...

What are the functional types used in control words of 8251a? The control words of 8251A are divided into two functional types. 1. Mode Instruction control word 2. Comman

Role of bureau of energy efficiency, Role of Bureau of Energy Efficiency ...

Role of Bureau of Energy Efficiency The role of the Bureau of Energy Efficiency is to: Ready standards and labels of appliances and equipment; Develop a list

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