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 nand gates - microprocessor, Explain the NAND Gates - Microproc...

Explain the NAND Gates - Microprocessor? The NAND GATE is a AND gate with the output inverted. Consequently the outputs of a NAND gate would be the opposites of the outputs of a A

Explain working of single-phase induction motors, Q. Explain working of Sin...

Q. Explain working of Single-Phase Induction Motors? For reasons of simplicity and cost, a single-phase power supply is universally preferred for fractional-horsepower motors.

Coupling, different coupling methods

different coupling methods

Illustrate the simplex transmission, Q. Illustrate the Simplex Transmission...

Q. Illustrate the Simplex Transmission? Simplex Transmission Data in a simplex channel is always one way. Simplex channels aren't often used as it is not possible to send ba

Draw the schematic diagram of the arrangement, Q. A two-winding, single-pha...

Q. A two-winding, single-phase transformer rated 3 kVA, 220:110 V, 60 Hz is connected as an autotransformer to transform a line input voltage of 330 V to a line output voltage of 1

Calculate critical angel and fundamental gaussian mode, (1) An argon ion la...

(1) An argon ion laser, emitting light at a wavelength of 488nm with a beam divergence of 150 firad, is used to illuminate the moon. (i) Assuming the earth-to-moon distance is 3

Three byte instruction , Three byte instruction The  instruction which...

Three byte instruction The  instruction which  have 16  bit data address  as its  operand  are three byte  instruction. They  need three  memory  locations to store  them in m

Responses to exponential excitations, Responses to Exponential Excitations ...

Responses to Exponential Excitations Let us consider Aest as a typical exponential excitation in which A is a constant and s is a complex- frequency variablewith a dimension of

Solve for amplitude and phase of the current and the voltage, Use PSpice to...

Use PSpice to solve for the amplitude and phase of the current and the voltage across the inductor in the circuit shown in Figure(a).

Electrical circuits and systems, Electrical circuits and systems : Elec...

Electrical circuits and systems : Electrical systems allow energy to be conveniently delivered from the point of supply to the point of application - e.g. electric railways, ca

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