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

Operation - unijunction transistor, Operation - unijunction transistor: ...

Operation - unijunction transistor: Operation : Imagine that the emitter supply voltage is turned biased and a small emitter reverse current flows. Then the intrinsic stand

What is a microcomputer, What is a microcomputer? A computer that is de...

What is a microcomputer? A computer that is designed using a microprocessor as its CPU is known as microcomputer

What do you mean by retention of risk, Q. What do you mean by Retention of ...

Q. What do you mean by Retention of Risk? Retention of Risk: In case of this method, the organization voluntarily accepts the risk since either the risk is insignificant or its

What do you mean by lumped-circuit elements, Q. What do you mean by Lumped-...

Q. What do you mean by Lumped-circuit elements ? Electric circuits or networks are formed by interconnecting various devices, sources, and components. Although the effects of e

Image enhancement, Explain briefly the operation, draw the functions, formu...

Explain briefly the operation, draw the functions, formulas and observations. (i) Write an m-file "imnorm.m" which takes an image finds min and max values and uses them to nor

Assinment, Ask question #Minimum mechanism of microwave communication 100 w...

Ask question #Minimum mechanism of microwave communication 100 words accepted#

Find the average power absorbed by each element, Q. Let v(t) = V max cos ω...

Q. Let v(t) = V max cos ωt be applied to (a) a pure resistor, (b) a pure capacitor (with zero initial capacitor voltage, and (c) a pure inductor (with zero initial inductor curren

Find the input resistance and output resistance, Quite often an amplifier i...

Quite often an amplifier is used as a component of an amplifier circuit. Consider the amplifier circuit shown in Figure, which contains an amplifier block as an internal component.

Negative voltage regulator series, Negative Voltage Regulator series with N...

Negative Voltage Regulator series with Nine voltage options - IC 7900 Series The IC 7900 series of fixed output negative voltage regulators are complements to the 7800 seri

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