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

Radiation pattern of a half-wave dipole antenna, Q. The radiation pattern o...

Q. The radiation pattern of a half-wave dipole antenna is given by (a) Sketch the radiation pattern in the principal plane of xz containing angle θ. (b) Determine the beam wi

Determine voltage on the self-biased n-channel, Measurements made on the se...

Measurements made on the self-biased n-channel JFET shown in Figure are V GS =-1 V, I D = 4 mA; V GS =-0.5V, I D = 6.25 mA; and V DD = 15 V. (a) Determine V P and I DSS .

Explain loads - generation and absorption of reactive power, Explain Loads ...

Explain Loads - Generation and Absorption of Reactive Power A load at 0.95 power factor implies a reactive power demand of 0.33 kVAr per kW of power. When planning a network, i

Cost and profitability - proposed kpis, Cost and Profitability - Proposed K...

Cost and Profitability - Proposed KPIs  KPI  UOM  Measures   RepresentativeStandards  Aggregate Technical &  Commercial L

Test quipment, The frequency of an oscillator may be measured by an oscillo...

The frequency of an oscillator may be measured by an oscilloscope with a callbrated time base(True/False)

Define the x-nor or exclusive-nor gate, Define the X-NOR or Exclusive-NOR G...

Define the X-NOR or Exclusive-NOR Gate?   This is the EX-OR gate with the output inverted, as shown by the 'o' on the output and the output Q is true if inputs A and B a

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

Give the applications of steel, Give the applications of steel. Steel ...

Give the applications of steel. Steel : It contains iron with a small percentage of carbon added to this. Iron itself is not extremely strong but while carbon is added this as

Determine the admittance of the parallel combination, Q. The voltage across...

Q. The voltage across a parallel combination of a 100- resistor and a 0.1-µF capacitor is 10 cos(5000t +30°) V. Determine the admittance of the parallel combination and find the c

Comparison between analog and digital storage oscilloscopes, The advantage ...

The advantage of the analog storage oscilloscope is that it has higher bandwidth and writing speed than a digital oscilloscope, being capable of operating speeds of about 15 GHz. T

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