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

Determine power reflection coefficient at the input port, Determine power r...

Determine power reflection coefficient at the input port: For the MESFET equivalent circuit shown below, find S 11 and S 22 . Note that resistances associated with the voltag

Find instantaneous electromagnetic torque, Consider an elementary two-pole ...

Consider an elementary two-pole rotating machine with a uniform (or smooth) air gap, as shown in Figure, inwhich the cylindrical rotor ismountedwithin the stator consisting of a ho

Find the force between the wires, Q. A magnetic force exists between two ad...

Q. A magnetic force exists between two adjacent, parallel current-carryingwires. Let I1 and I2 be the currents carried by the wires, and r the separation between them.

Define the perspective transformation, Define the application of CAM/CAD to...

Define the application of CAM/CAD to engineering design along with its benefits. a) A triangle is prepared by three position vectors A[2 4 1], B[4 6 1], C[2 6 1], get the reflec

Representation of negative number, Representation of Negative Number: ...

Representation of Negative Number: As  mentioned  in chapter 1 in 8085  negative  numbers are represented in 2 complement  form  and subtraction is  performed  using 2  comple

What do you understand by orthographic projection, What do you understand b...

What do you understand by orthographic projection ? Illustrate with the help of Matrix representation.

Elementary induction machines, Elementary Induction Machines In the dis...

Elementary Induction Machines In the discussion that followed Equation, the third possiblemethod of producing constant torque was to cause the mmf axes of stator and rotor to r

Feedback amplifier, explain working pricipal of nagative resistance oscilla...

explain working pricipal of nagative resistance oscillator

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