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 demodulator processes, Q. Digital demodulator processes? The fu...

Q. Digital demodulator processes? The functions of the receiver in Figure are the inverse of those in the transmitter. At the receiving end of a digital communication system, t

Block diagram of proportional and integral controller, Q. Show Block diagra...

Q. Show Block diagram of proportional and integral controller? The block diagram of Figure illustrates a typical microprocessor system used to implement the digital PI controll

Semiconductor equations, Semiconductor Equations  The semiconductor e...

Semiconductor Equations  The semiconductor equations that are relating these variables are shown below: Carrier density: n = n i exp (E FN - E i / KT)        (1)

Parallel - flash converter, Q. Parallel - flash converter? Parallel / ...

Q. Parallel - flash converter? Parallel / flash converter. Also known as parallel A/D converter, this circuit is the simplest to understand. It's formed of a series of co

Daa decimal adjust accumulator instruction , DAA Decimal Adjust Accumulator...

DAA Decimal Adjust Accumulator Instruction This  instruction adjusts the contents  of the accumulator  into BDC (Binary Coded Decimal )  form  after a BCD  addition. It should

Unit impulse response of a linear system, Q. The unit impulse response h(t)...

Q. The unit impulse response h(t) of a linear system is h(t) = 5e -t cos(2t - 30°). Determine H(s).

Find the rms induced voltage, A two-pole, three-phase, 60-Hz, wye-connected...

A two-pole, three-phase, 60-Hz, wye-connected, round-rotor synchronous generator has N a = 12 turns per phase in each armature phase winding and flux per pole of 0.8Wb. Find the r

Floor number display, It is required that the current floor position be dis...

It is required that the current floor position be displayed as a number 1, 2, or 3 on a seven segment LED display on floor 1, which is quite close to the LCU. Data Storage It

Explain what happen as the frequency increases, Question: (a) A typica...

Question: (a) A typical RF filter is made up of sections using circuit components. One example of a section is the Inductor-Capacitor (L-C) section. State two other types of

Explain immediate data addressing mode, Explain immediate data addressing m...

Explain immediate data addressing mode (with examples) available in microprocessors. Immediate Mode: The operand given in immediate mode is the actual data itself.

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