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

Magnet, Magnetic materials

Magnetic materials

CRO, what are the difference between digital and Analog storage oscilloscop...

what are the difference between digital and Analog storage oscilloscope ?

Explain the different types of polarizations, Explain the different types o...

Explain the different types of polarizations. Polarizations are of three types. i. Electric polarization ii. Ionic polarization. iii. Dipolar polarization.

Find current in bjt, Q. A BJT is biased by the method shown in Figure. If V...

Q. A BJT is biased by the method shown in Figure. If V BEQ = 0.7V, β = 100, V CEQ = 10 V, and I CQ = 5 mA, find I 1 , I 2 , and IEQ.

Demagnetizing and cross magnetizing effects , Q.   What do you understand b...

Q.   What do you understand by demagnetizing and cross magnetizing effects of armature reaction in a d.c. machine. Derive the expression for calculation of demagnetizing and cross

Common drain amplifier, Common Drain Amplifier In electronics, a comm...

Common Drain Amplifier In electronics, a common-drain amplifier, as well termed as a source follower, is one type of three basic single-stage field effect transistor (FET) am

Determine the electromagnetic force on the plunger, Q. Consider the electro...

Q. Consider the electromagnetic plunger shown in Figure. The λ-i relationship for the normal working range is experimentally found to be λ = Ki 2/3 /(x+t), where K is a constant. D

Quality control, three reasons why a chamfer shouldn''t be considered an un...

three reasons why a chamfer shouldn''t be considered an unimportant dimension

Forward and reverse battery bias, Forward and Reverse battery bias In ...

Forward and Reverse battery bias In diagram below(a) the battery is arranged that is why the negative terminal supplies electrons to the N-type material. These types of electr

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