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

Two-level system - princeton, Conceive a system composed of a very large nu...

Conceive a system composed of a very large number N of distinguishable atoms at rest and mutually noninteracting, each of which has only two (nondegenerate) energy levels:0,ε>0 Let

Sketch phasor diagrams for lagging power factor load, Q. For a transmission...

Q. For a transmission-line model that includes only the series impedance Z, sketch phasor diagrams for: (a) Lagging power factor load. (b) Leading power factor load.

Determine the open-circuit output voltage, Q. Determine the open-circuit ou...

Q. Determine the open-circuit output voltage v o of the system shown in Figure as a function of the input voltage v i .

FRACTIONAL PID TUING USING GA FOR LOAD FREQUENCY CONTROL, Iam doing my proj...

Iam doing my project on LFC using tuned FOPID.I have considered a two area model..I need help regarding my project.i need help regarding implementation of GA MATLAB code for a two

Society in engineering, cite a specific example in which the engineer must ...

cite a specific example in which the engineer must provide maximum efficiency for a given cost.

Explain the working principle of a triac, Q. Explain the working principle ...

Q. Explain the working principle of a TRIAC. "Triac" is an abbreviation for three terminal ac switch. 'Tri'-indicates that the device has three terminals and 'ac' indicates tha

Block diagram and the truth table of a demultiplexer, Q. Given the block di...

Q. Given the block diagram and the truth table of a demultiplexer, as shown in Figure, obtain its implementation.

Explain lithography, Explain Lithography. Lithography - This is one ...

Explain Lithography. Lithography - This is one of the processes which is carried out throughout manufacture of integrated circuits. Silica oxide (SiO 2 ) layer is thermally

Dc electric motors, T h er e are three main types -   The Shu...

T h er e are three main types -   The Shunt Connected DC motor in which the armature coils are connected in parallel with the field coils   The Serie

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