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

Compute the maximum internal torque, For the motor speci?ed in figure,  com...

For the motor speci?ed in figure,  compute the following: (a) The load component I' 2 of the stator current, the internal torque T, and the internal power P m for a slip of 0.

Find the new gain for the inverting-amplifier circuit, Q. An op amp has a f...

Q. An op amp has a finite gain of only 50, but is otherwise ideal. For the inverting-amplifier circuit of Figure, if R 2 = 20 k, what value of R 1 would be needed to give a gain

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.

What is resistivity, What is resistivity? Resistivity of a material ma...

What is resistivity? Resistivity of a material may be explained as the resistance of the material having unit length and also unit cross sectional area. Unit of it is ohm-m.

Solar steam power generator, This project is about another particular appli...

This project is about another particular application of a particular embodiment of the patent: A Long Stroke Steam Engine using Solar Generated Steam. The machine elements such as

What does the eu do, Execution Unit receives program instruction codes and ...

Execution Unit receives program instruction codes and data from BIU, implements these instructions and store the result in general registers.

A Capacitor-Fed, A Capacitor-Fed, Voltage-Step-Down, Single-Phase, Non-Isol...

A Capacitor-Fed, Voltage-Step-Down, Single-Phase, Non-Isolated Rectifier

Show binary coded decimal number system, Q. Show Binary Coded Decimal Numbe...

Q. Show Binary Coded Decimal Number System? If we analysis single digit values for hex, the numbers 0 - F, they represent the values 0 - 15 in decimal, and occupy a nibble. Fre

Power electronics, A step-down transformer has primary turns Np = 100; seco...

A step-down transformer has primary turns Np = 100; secondary turns Ns = 10; primary winding resistanceRp = 100 ?; secondary winding resistance Rs = 2 ?. Assume that there is no l

Dc motor characteristics, Q. DC Motor Characteristics? We gain an under...

Q. DC Motor Characteristics? We gain an understanding of the speed-torque characteristics of a dc motor from Equations. In shunt motors, the field current can be simply control

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