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

Communication, can I get matlab code for out of band radiation reduction of...

can I get matlab code for out of band radiation reduction ofdm system

What do you mean by mantissa, Q. What do you mean by Mantissa? The man...

Q. What do you mean by Mantissa? The mantissa , as well known as the significand , represents the precision bits of the number. It is composed of an implied leading bit and t

Basic building block of a block diagram, The mathematical relationships of ...

The mathematical relationships of control systems are usually represented by block diagrams, which show the role of various components of the system and the interaction of variable

Emf, discuss the factor affecting the emf induced in electric machines

discuss the factor affecting the emf induced in electric machines

Compute the capacitance, Figure shows the cross-section of an electrostatic...

Figure shows the cross-section of an electrostatic problem with translational symmetry: a rectangular coaxial cable. The inner conductor is held at 10 volts and the outer conductor

Basic & Advance Building Wiring, Hello may i know if it is possible for me ...

Hello may i know if it is possible for me to teach online on electrical maters?

Briefly explain energy and power, Q. Briefly Explain Energy and Power? ...

Q. Briefly Explain Energy and Power? If a charge dq gives up energy dw when going from point a to point b, then the voltage across those points is defined as v = dw/dq If

Physics, find the resultant of two forces 20N and25N acting at an angle 60...

find the resultant of two forces 20N and25N acting at an angle 60 degree each other

Hall effect - semiconductor, Explain hall affect and derive the mathematic...

Explain hall affect and derive the mathematical expression for hall coefficient, also describe its applications. Sol. Hall effect If a metal or semiconductor material carr

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