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

Semiconductors, Why do potential barriers breaks when a breakdown voltage i...

Why do potential barriers breaks when a breakdown voltage is application to semiconductor

Spectrum analyser, The spectrum analyser plots amplitude against frequency,...

The spectrum analyser plots amplitude against frequency, in other words it shows signals in the frequency domain. The spectrum analyser has the same trigger options as the oscillos

Phenomenon - fet operation, Phenomenon - Fet operation: For either imp...

Phenomenon - Fet operation: For either improvement- or depletion-mode devices, at drain-to-source voltages very much less than gate-to-source voltages, changing the gate volta

Weighted-resistor converter, Q. WEIGHTED-RESISTOR CONVERTER? Figure sho...

Q. WEIGHTED-RESISTOR CONVERTER? Figure shows a 4-bit weighted-resistor D/A converter which includes a reference voltage source, a set of four electronically controlled switches

What is meant by regulation, Q. What is meant by regulation? The output...

Q. What is meant by regulation? The output of most power supplies should be a constant voltage. Unfortunately, this is difficult to achieve. There are two factors that can caus

Draw the logic diagram of the enabled d latch, Q. (a) Draw the logic diagra...

Q. (a) Draw the logic diagram of the enabled D latch using only NAND gates. (b) Complete the timing diagram of Figure (a) of theDlatchwhose block diagram and truth table are giv

Find dispersion relation for free electron, Find Dispersion Relation for Fr...

Find Dispersion Relation for Free Electron Question: Find the dispersion relation for a free electron, and, thus, observe the relation between its rest mass and effective ma

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