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

What is meant by blanking, a. Explain the following terms: (6) (i) Persi...

a. Explain the following terms: (6) (i) Persistence of vision (ii) Flicker in motion pictures b. What is meant by blanking? What is the need of blanking pulses? Compare th

Explain the different types of multivibrators, Explain the different types ...

Explain the different types of multivibrators ? Multivibrator is basically  a two-stage amplifier with output of one supplied back to the input of the other . Multivibr

Three phase steam turbine generator, A 3 phase 400 volt(line to line) wye c...

A 3 phase 400 volt(line to line) wye connected synchronous motor has Xs= 1 ohm per phase and a negligible armature resistance. The field current is so adjusted that the internal(in

Draw a neat circuit of colpitt''s oscillator, Q. Draw a neat circuit of Col...

Q. Draw a neat circuit of Colpitt's oscillator using an n-p-n transistor. Give its equivalent circuit obtain expressions for (i) frequency of oscillation and(ii) minimum gain for s

Dc machine dynamic performance, Calculate the following for a 2 hp and a 20...

Calculate the following for a 2 hp and a 20 hp dc machine, each rated for 500 rpm. Use data from the Study Plan 1 data sheet, including "hot" armature resistance value for all cal

Honer, Can I have formulas for calculation of 50TN seting on 33KV overhead ...

Can I have formulas for calculation of 50TN seting on 33KV overhead line

Explain the cmp instruction, Explain the CMP instruction . CMP: The comp...

Explain the CMP instruction . CMP: The comparison instruction is a subtraction which changes only the flag bits; the destination operand certainly not changes. A comparison is h

Explain indexed addressing in 8051, Probelm: (a) Explain indexed addre...

Probelm: (a) Explain indexed addressing in 8051. (b) How does the 8051 distinguish between a byte address and a bit address? (c) How do open-loop and closed loop appli

Features of tariff policy, Features of tariff policy: For projects who...

Features of tariff policy: For projects whose tariff is determined by performance- based cost of service regulation, the advantages of decreased tariff after full depreciation

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