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

Working of r digital to analog converter, 2 n -R D/A CONVERTER An n-bit...

2 n -R D/A CONVERTER An n-bit 2 n -R D/A converter needs 2 n resistors of equal value R and (2 n+1 -2) analog switches. A 3-bit 2 n -R D/A converter is shown in Figure, which

Explain about darlington amplifier, Q Explain about 'Darlington Amplifier'?...

Q Explain about 'Darlington Amplifier'? DARLINGTON AMPLIFIER : A CC stage followed by another CC stage has an input resistance of about (b + 1) 2 times the emitter resistance

Dc machine, In the conventional dc machine (with a closed continuous commut...

In the conventional dc machine (with a closed continuous commutator winding on its armature), for example, full-wave rectification of the alternating voltage induced in individual

Explain protected mode interrupt, Explain protected mode interrupt. In...

Explain protected mode interrupt. In this mode, interrupts have exactly similar assignments as in real mode, but the interrupt vector table is not same. In place of interrupt

Convolution, Convolution :   (i) Express this function in terms of kern...

Convolution :   (i) Express this function in terms of kernel coefficients and convolve with image class.png, (x,y are coordinates of pixels) Io(x,y)=I(x+1,y)-2*I(x,y)+I(x-1,

Determine the function of time for the clock, Q. Determine the function of ...

Q. Determine the function of time for the clock? Given the block diagram for a 4-bit shift-left register shown in Figure (a), draw the output (Q 0 , Q 1 , Q 2 , Q 3 , and data

Determine the input resistance between terminals of circuit, Q. Consider Fi...

Q. Consider Figure of the weighted differencing amplifier. Let R 3 = R 1 and R 4 = R 2 . Determine the input resistance between terminals a and b of the circuit.

Sketch the circuit with all the relevant labelling, Question: (a) Consi...

Question: (a) Consider the subsequent LC impedance function: (i) If the function is to be realised using the Foster I Form, evaluate the values of the different compon

Static v- i characteristics - power semiconductor devices, V- I Characteris...

V- I Characteristics The operation of the  diac can be explained by imagining it as two diodes connected  in series. When  applied voltage in either polarity is small ( less t

What do you understand by bezier surface, What do you understand by Bezier ...

What do you understand by Bezier surface ? Discuss Determine the equivalent bicubic formulation of a closed and open cubic B-spine surface. a) What do you understand by solid

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