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

Types of cells and batteries, Types of cells and batteries are:- a.  C...

Types of cells and batteries are:- a.  Carbon-zinc cell b. Nickel-cadmium cell c.  Alkaline celld.  d.  Edison cell e.  Mercury cell

Find the current Flow, Q. A charge q(t) = 50+1.0t C ?ows into an electric c...

Q. A charge q(t) = 50+1.0t C ?ows into an electric component. Find the current ?ow.

Name the special functions registers available in 8051, Name the special fu...

Name the special functions registers available in 8051. Accumulator B Register Program Status Word. Stack Pointer. Data Pointer. Port 0 Port 1 Port 2 Po

The operation of colpitts oscillator, Q. Explain with the help of a circuit...

Q. Explain with the help of a circuit diagram,the operation of COLPITTS OSCILLATOR. Oscillator is a circuit used to generate a.c voltage without a.c.input signal.The energy to

Compute product of inductance and capacitance, Q. The inductance per unit l...

Q. The inductance per unit length in H/m for parallel-plate infinitely long conductors in air is given by L = µ 0 d/w = 4π×10 -7 d/w, where d and w are inmeters. Compute L (per un

Responses to exponential excitations, Responses to Exponential Excitations ...

Responses to Exponential Excitations Let us consider Aest as a typical exponential excitation in which A is a constant and s is a complex- frequency variablewith a dimension of

Voltage divider bias, Voltage divider bias: The voltage divide...

Voltage divider bias: The voltage divider is made by using external resistors R 1  and R 2 . The voltage beyond than R 2  forward biases the emitter junction. Via prop

Analog Filters, Each of the following functions is abs(H(jw))^2 of a certai...

Each of the following functions is abs(H(jw))^2 of a certain network function H(s). Obtain all the possible H(s) for each given abs(H(jw))^2. [(w^4)+25]/[(w^4)+(12w^2)+49]

Describe the meaning of standing wave ratio, a. Describe the meaning of sta...

a. Describe the meaning of standing wave ratio. What is the formula for it, if the load is purely resistive? Why is a high value of SWR often undesirable? b. Determine how the c

Three-phase induction motor, Q. A 60-Hz, six-pole, wye-connected, three-pha...

Q. A 60-Hz, six-pole, wye-connected, three-phase induction motor, with the parameters R 1 = R 2 = 0.025  and Xl 1 = Xl 2 = 0.125 , is controlled by variable-frequency 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