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

Compare with memory, Compare with memory The contents  of the memory...

Compare with memory The contents  of the memory  of the memory  location  pointed by HL  register pair are compared with the  contents of the accumulator. The  instruction f

Explain working of three-phase transformers, Q. Explain working of three-ph...

Q. Explain working of three-phase transformers? Transformation in three-phase systems can be accomplished in either of two ways: (1) connecting three identical single-phase tra

Semiconductors, Semiconductors Conductivity in among those of metal...

Semiconductors Conductivity in among those of metals and insulators. Conductivity can be changed over orders of magnitude through changes in temperature, optical excitat

Ac machines, AC Machines: We have learnt the fundamental concepts of t...

AC Machines: We have learnt the fundamental concepts of the transformer, induction motors and special type fractional kilowatt (kW) machines. In the section of transformer you

Armature winding - motor control , Armature Winding In this  winding t...

Armature Winding In this  winding the working  emf is induced by the working  flux. The current  which is  dependent on the load  called current.  The windings  that handle

Representation of magnetic fields, The direction of the magnetic field line...

The direction of the magnetic field lines is given by 'Maxwell's Right-Hand corkscrew rule'  The thumb of the right hand indicates the direction of current flow in the wire and

Explain the chemical properties of insulating materials, Explain the chemic...

Explain the chemical properties of insulating materials. Chemical properties - Chemical resistance: Presence of gases, acids, water, alkalies and salts influences different

Explain the working of depletion mosfet, Q. Explain the working of depletio...

Q. Explain the working of depletion MOSFET ? The gate voltage can control the resistance of the n-channel but as the gate is insulated from the channel, we can apply either a p

Circuit analysis, what is quality factor in term circuit analysis

what is quality factor in term circuit analysis

Define memory for a digital computer, Q. Define Memory For a digital comput...

Q. Define Memory For a digital computer? For a digital computer which stores both programs and data, memory can be divided into three types: random-access memory, mass storage,

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