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

Find current through resistor using superposition theorem, Find the current...

Find the current through each resistor for the networking below using Superposition Theorem.

Magnitude comparator, circuit diagram of 2 bit magnitude comparator

circuit diagram of 2 bit magnitude comparator

Explain the sequential circuits, Explain the Sequential Circuits? The L...

Explain the Sequential Circuits? The Logic circuits whose outputs, at any instant of time, depends not merely the present input but as well the past output called sequential ci

Robotic, Ask questCompute the mean and variance of a four-level image with ...

Ask questCompute the mean and variance of a four-level image with histogram p(z\ ) = 0.1, p{zi) = 0.4, ?(1?) =0.3, p{za) = 0.2. Assume that z\ = 0, zi = 1, z$ = 2, and ? — ?. i

TTL input logic circuit, I am building a testing device for the purpose of ...

I am building a testing device for the purpose of screening a 5801 BiMOS 8 BIT Parallel-input Latched Driver, I need help with input circuit to drive all 8 outputs one at a time. M

Determine self inductance of coil, Determine self inductance of coil: ...

Determine self inductance of coil: A flux of 0.5 m Wb is generated by coil A of 600 turns wound on a ring with a current of 2 A in it. Determine (a) self inductance of coil A,

Transformer, how much transformer oil is used in transformers

how much transformer oil is used in transformers

Explain the significance of the coupling capacitor, Q. Explain the signific...

Q. Explain the significance of the Coupling capacitor and the RE - CE circuit. The function of the coupling capacitor is to isolate the amplifier input circuit from the source.

Describe the process control instructions, Describe the process control ins...

Describe the process control instructions STC - It sets the carry flag & does not affect any other flag  CLC - it resets the carry flag to zero &does not affect any other fl

Telephony, connection of STS MUX/DMUX

connection of STS MUX/DMUX

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