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

Chemistry, Write short note on hardness of water and its units

Write short note on hardness of water and its units

Explain what is doping, What is meant by doping? Doping: Semiconduct...

What is meant by doping? Doping: Semiconductors in its extremely pure form are termed as intrinsic semiconductor such intrinsic semiconductor to which several suitable impur

Engineer, explain the alphanumeric codes

explain the alphanumeric codes

Compute the area of each plate for parallel-plate capacitor, Q. For a paral...

Q. For a parallel-plate capacitor with plates of area A m 2 and separation d m in air, the capacitance in farads may be computed from the approximate relation Compute the

Determine dielectric materials are which type of materials, Dielectric mate...

Dielectric materials are (A) Insulating materials.        (B) Semiconducting materials. (C) Magnetic materials.         (D) Ferroelectric materials. Ans:

Find the current flow through resistor using norton theorem, Use Norton Th...

Use Norton Theorem, find the current flow through resistor R=10Ω.

Clapp oscillator, derivation of frequency of oscillators clapp and derive C...

derivation of frequency of oscillators clapp and derive C effect?

Electronics, Figure 1(a) shows a simple one-stage MOSFET amplifier. The inp...

Figure 1(a) shows a simple one-stage MOSFET amplifier. The input-output relationship is graphed in Figure 1(b), where the solid curve indicates operation in the saturated region an

Counters, i need a counter of following o/p truth table 00000000 10000000 1...

i need a counter of following o/p truth table 00000000 10000000 11000000 11100000 11110000 11111000 11111100 11111110 11111111 00000000 10000000 . . . so please suggest me some IC

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