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

Input bias current of operational amplifier, Q. Input bias current of opera...

Q. Input bias current of operational amplifier? When operated at extremely low quiescent current values, the base bias currents will be low; but they do have to be taken into c

H – parameter model, H - Parameter model :- The transistor's equiv...

H - Parameter model :- The transistor's equivalent circuit can be dram using simple approximation by retaining its necessary features. These equivalent circuits will a

Management process of balanced score card, Management Process of Balanced S...

Management Process of Balanced Score Card The BSC (Balanced Score Card) proposes four a new management processes which separately and in combination, contributes to linking lo

Transformers, A 15kVA has a turns ratio 1:10. If the voltage applied is 13....

A 15kVA has a turns ratio 1:10. If the voltage applied is 13.8kV and the applied load is 20+j6. Find the current in the secondary winding and the active and reactive power consumed

Obtain expressions for the in-phase and quadrature component, Q. For DSB an...

Q. For DSB and conventional AM, obtain expressions for the in-phase and quadrature components x d (t) and x q (t), and envelope and phase v(t) and φ(t).

Explain fourier series, Q. Explain Fourier Series? The phasor method of...

Q. Explain Fourier Series? The phasor method of circuit analysis can be extended (by using the principle of superposition) to find the response in linear systems due to nonsinu

What is polyphase induction machine performance, Q. What is Polyphase Induc...

Q. What is Polyphase Induction Machine Performance? Some of the important steady-state performance characteristics of a polyphase induction motor include the variation of curre

Explain the term full duplex transmission, Explain the term full duplex tra...

Explain the term full duplex transmission. Data can travel in both directions concurrently. There is no require to switch from transmit to receive mode as in half duplex. It's

Find the flux density in the air gap of the right leg, Q. In the magnetic c...

Q. In the magnetic circuit shown in Figure the center leg has the same cross-sectional area as each of the outer legs. The coil has 400 turns. The permeability of iron may be a

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