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

Explain steady-state stability, Q. Explain Steady-State Stability? The ...

Q. Explain Steady-State Stability? The property of a power system that ensures that it will remain in equilibrium under both normal and abnormal conditions is known as power-sy

Determine the stations visual-carrier frequency, If a television station op...

If a television station operates on UHF channel 20 (band 506-512 MHz), determine the station's visual-carrier frequency.

What do you mean by frequency response, Q. What do you mean by Frequency re...

Q. What do you mean by Frequency response? Now let us examine the response of a circuit to a sinusoidal source, called an oscillator, whose frequency can be varied.Known as the

Explain continuous-data and discrete-data systems, Q. Explain Continuous-da...

Q. Explain Continuous-data and discrete-data systems? A continuous-data system is one in which the signals at various parts of the systemare all functions of the continuous-tim

Abcd propagation , ABCD propagation of an optical ray through a system can...

ABCD propagation of an optical ray through a system can be explained by a simple 2_2 matrix. In ray optics, the characteristic of a system is given by the corresponding ray matrix

Calculate the power transferred across the air gap, A three-phase, 5-hp, 22...

A three-phase, 5-hp, 220-V, six-pole, 60-Hz in- duction motor runs at a slip of 0.025 at full load. Rotational and stray-load losses at full load are 5% of the output power. Calcul

Theoretical circuit, Theoretical Circuit The theoretical circuit is ava...

Theoretical Circuit The theoretical circuit is available in form 1.Passive materials with mediocre dimension is used by the manufacturer. In order to make a theoretical circuit

Addition of binary numbers , Addition of binary numbers Example:   Ad...

Addition of binary numbers Example:   Add  110010102 ( -510). and 00000101 2 (+5 10 ) Solution :                         Binary                                   signed

FET, shockely equation?

shockely equation?

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