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 are concentrators, Q. What are concentrators? Elucidate how it helps i...

Q. What are concentrators? Elucidate how it helps in connecting number of subscribers. Ans: In rural areas, subscribers are usually dispersed. It is both expensive and unn

Briefly explain about laplace transform, Q. Briefly explain about Laplace t...

Q. Briefly explain about Laplace transform? Many commonly encountered excitations can be represented by exponential functions. The differential equations describing the network

Semiconductor, What is the similarities between a vacuum diode and a triode...

What is the similarities between a vacuum diode and a triode?

How to calculate back pitch, Q.   A 6 - pole, DC armature with 36 slots and...

Q.   A 6 - pole, DC armature with 36 slots and 2 coil - slides/slot is to be wave wound (double layer). Calculate the back pitch, front - pitch and commentator pitch. How many dumm

Explain sampling and pulse modulation, Q. Explain Sampling and Pulse Modula...

Q. Explain Sampling and Pulse Modulation? In most analog circuits, signals are processed in their entirety. However, in many modern electric systems, especially those that conv

Sonic harassment, Sir I would like to find a sensor that can detect beams ...

Sir I would like to find a sensor that can detect beams from the phasor painfield generator and the sonic devasator (devices of this nature). These sonic devices emit a high pres

Find the voltage drops across the resistors, Consider the network shown in ...

Consider the network shown in Figure (a). (a) Find the voltage drops across the resistors and mark them with their polarities on the circuit diagram. (b) Check whether the KV

A 450 ns eprom won''t work directly with a 5mhz 8088, A 450 ns EPROM won't ...

A 450 ns EPROM won't work directly with a 5MHz 8088.Why? Explain. While the 8088 is operated along with a 5 MHz clock, it permits 460 ns for the memory to access data. Due to t

Explain balanced wye-connected load, Balanced Wye-Connected Load Let us...

Balanced Wye-Connected Load Let us consider a three-phase, four-wire 208-V supply system connected to a balanced wye connected load with an impedance of 10 20° , as shown in F

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