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

Digital transmission on fading multipath channels, Digital Transmission on ...

Digital Transmission on Fading Multipath Channels We have discussed thus far digital modulation and demodulation methods for the transmission of information over two types of c

Determine the flux densities, In the magnetic circuit shown in Figure (a) t...

In the magnetic circuit shown in Figure (a) the coil of 500 turns carries a current of 4 A. The air-gap lengths are g 1 = g 2 = 0.25 cm and g 3 = 0.4 cm. The cross-sectional are

Determine the maximum value of the voltage induced in coil, Q. A 10-turn sq...

Q. A 10-turn square coil of side 200 mm is mounted on a cylinder 200 mm in diameter. If the cylinder rotates at 1800 r/min in a uniform 1.2-T field, determine the maximum value of

Define flash analog to digital converters, Define Flash Analog to Digital C...

Define Flash Analog to Digital Converters? Parallel flash ADCs transform the analog input voltage faster as compared to other types of ADCs.  They compare the voltage in parall

What do you mean by source encoding, Q. What do you mean by Source Encoding...

Q. What do you mean by Source Encoding? After the quantization of message samples, the digital system will then code each quantized sample into a sequence of binary digits (bit

#title. electronic project for invention, I need assistance in building a c...

I need assistance in building a circuit for my invention ,I am a electronic tech with limited knowledge but designing and building a proto model is a little out of my expertise ce

What are flip flop circuits in digital electronics, What are flip flop circ...

What are flip flop circuits in digital electronics? Discuss race around condition in J-K Flip Flop

What is digital system components, Q. What is Digital system components? ...

Q. What is Digital system components? The reason that digital systems are so inexpensive and yet so powerful is that they consist of very  large numbers of just a few building

Neutral line in transformer, thus secondary winding of transformer consists...

thus secondary winding of transformer consists of neutral line or not?

MIMO, MIMO downlink mode uses

MIMO downlink mode uses

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