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

RC coupled transistor amplifier., why we plot graph to find bandwidth is dr...

why we plot graph to find bandwidth is drawn b/w av/avmax v/s frequency not av v/s frequency?

What is programmable interrupt controller, What is programmable interrupt c...

What is programmable interrupt controller? The Programmable interrupt controller is used when several I/O devices transfer datausing interrupt and they are connected to the sam

Find the turns ratio of the ideal transformer, Q. Consider an amplifier as ...

Q. Consider an amplifier as a voltage source with an internal resistance of 72 . Find the turns ratio of the ideal transformer such that maximum power is delivered when the amplif

Explain numeric processor 8087, Explain numeric processor 8087. Numeric...

Explain numeric processor 8087. Numeric processor 8087 is a coprocessor which has been intended to work under the control of the processor 8086 and offer it additional numeric

Determine the electric force on each charge, Q Point charges, each of √4πε0...

Q Point charges, each of √4πε0 C, are located at the vertices of an equilateral triangle of side a. Determine the electric force on each charge.

Control systems, why open loop system is stable and why degree of stability...

why open loop system is stable and why degree of stability varies in closed loop system

Discuss macro assembler directive, Discuss MACRO assembler directive wi...

Discuss MACRO assembler directive with example. MACRO: A sequence of instructions to that has a name is assigned is termed as macro. Macros and subroutines are the

Explain the working of rectifier circuits, Q. Explain the working of Rectif...

Q. Explain the working of Rectifier Circuits? A simple half-wave rectifier using an ideal diode is shown in Figure(a). The sinusoidal source voltage v S is shown in Figure (b)

Dsp causal LTI system, cosider a causal LTI system whose system function is...

cosider a causal LTI system whose system function is H(z)=1-1/5z^-1/(1-1/2z^-1+1/3z^-2)(1+1/4z^-1) find the direct form 1 and direct form 2

What are the modes used in keyboard modes, What are the modes used in keybo...

What are the modes used in keyboard modes? 1. Scanned Keyboard mode with 2 Key Lockout. 2. Scanned Keyboard particular Error Mode. 3. Scanned Keyboard with N-key Rollover

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