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

Demodulation of ssb signals, Demodulation of SSB signals also requires the ...

Demodulation of SSB signals also requires the use of a phase-coherent reference. Figure shows the general configuration to demodulate the SSBsignal.Asmall carrier component, which

Accelerator and investment, Q. Accelerator and Investment? Accelerator,...

Q. Accelerator and Investment? Accelerator, Investment: Investment spending stimulates economic growth that consecutively stimulates further investment spending (as businesses

What is the use of stepper motor, What is the use of stepper motor? A s...

What is the use of stepper motor? A stepper motor is a device used to get an accurate position control of rotating shafts. A stepper motor employs rotation of its shaft in term

#title.oscillators., how does an RC 3 phase shift oscillator operates?

how does an RC 3 phase shift oscillator operates?

Explain current and magnetic force, Q. Explain Current and Magnetic Force? ...

Q. Explain Current and Magnetic Force? The rate ofmovement of net positive charge per unit of time through a cross section of a conductor is known as current, i(t) = dq / dt

Define amplification factor and drain resistance, Q. Define amplification f...

Q. Define amplification factor, drain resistance and transconductance and derive the relationship between drain resistance and trans conductance? Drain resistance It is the

Find the steady state values, Question: Consider the circuit shown in F...

Question: Consider the circuit shown in Figure. There is no initial energy stored in the circuit until time t=0 when the switch is closed. (i) Transform the given circ

Button cells, what is a button cells and how is it used on a low current el...

what is a button cells and how is it used on a low current electronic circuit

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