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 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)

Mid band voltage gain, For the amplifier circuit shown below estimate the m...

For the amplifier circuit shown below estimate the mid band voltage gain if the EARLY voltage (V A ) of the current mirror transistors is 80 volts.  Assume the d.c biasing is optim

Matlab, to design wheatstone bridge

to design wheatstone bridge

Show the process for taking observations by satellite, Q. Show the Process ...

Q. Show the Process for taking observations by satellite? Sensors are devices to make observations, which have sophisticated mechanism for taking observations. The detectors ar

Nicol prism, how much and what to write it is of 30 marks

how much and what to write it is of 30 marks

Explain the construction of jfet, Q. Explain the construction of JFET? ...

Q. Explain the construction of JFET? The basic construction of the p-channel JFET is shown in figure. The major part of the structure is the p-type material that forms the chan

Explain basic principle of linear sweep voltage generator, Q. Explain the b...

Q. Explain the basic principle of linear sweep voltage generator A linear time base generator or sweep generator is one that provides an output waveform, a portion of which exh

8085microprocessor architecture , Normal 0 false false fals...

Normal 0 false false false EN-IN X-NONE X-NONE 8085MICROPROCESSOR ARCHITECTURE

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