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

Wye-delta transformation., what is the literature review about wye delta tr...

what is the literature review about wye delta transformation?? for 3 paragraphs atleast*

What are transmission bridges, Q. What are transmission bridges? How do the...

Q. What are transmission bridges? How do they assist in satisfying the connectivity?  Ans: A typical transmission bridge is demonstrated in figure. Series capacitance and shunt

Define the property under which resistance of metals vanish, The property d...

The property due to which the resistance of some metal or compound vanishes under certain conditions is (A) Semi conductivity.                     (B) Super conductivity.

Difference among microprocessor and microcontroller, In Microprocessor more...

In Microprocessor more op-codes, few bit handling instructions. But in Microcontroller: fewer op-codes, more bit handling Instructions, and also it is described as a device that ha

The internal resistance of the zener diode, A 9.1V zener diode has a nomina...

A 9.1V zener diode has a nominal voltage fall at a test current of 28mA. The internal resistance of the zener diode is 5 ohms. Find the voltage drop across the zener diode at zener

Kalman Filter, Kalman filter implementation assignment

Kalman filter implementation assignment

Determine power reflection coefficient at the input port, Determine power r...

Determine power reflection coefficient at the input port: For the MESFET equivalent circuit shown below, find S 11 and S 22 . Note that resistances associated with the voltag

Power flow analysis, Ask question #Minimum 10] In the system shown in Fig...

Ask question #Minimum 10] In the system shown in Figure 4-1, the rated voltage of the line is 110kv, and the conductors are all LGJ-120 type. The parameters are: r1=0.21O/km,x1=0

Solar energy, can i use the direct solar energy from solar plate to charge ...

can i use the direct solar energy from solar plate to charge my laptop without a battery

Working of r digital to analog converter, 2 n -R D/A CONVERTER An n-bit...

2 n -R D/A CONVERTER An n-bit 2 n -R D/A converter needs 2 n resistors of equal value R and (2 n+1 -2) analog switches. A 3-bit 2 n -R D/A converter is shown in Figure, which

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