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

Illustrate gas power plant, With the help of schematic diagram illustrate G...

With the help of schematic diagram illustrate Gas Power Plant. Describe the effect of reheating, regeneration and inter cooling with the help of suitable T-S diagrams. Give the

Discuss the term d/a conversion, Discuss the term D/A conversion. D/A...

Discuss the term D/A conversion. D/A conversion: Digital-to-analog or analog-to-digital conversions are two very significant aspects of digital data processing.  Digital-to-

For carry flag - conditional jumps , For carry Flag JC (  jump on  Ca...

For carry Flag JC (  jump on  Carry ) and JNC (Jump  on No carry ) Instructions : JC transfer the  execution of the  program to the  specified memory  address if  carry

Subtract contents of memory and borrow from accumulator, Subtract Contents ...

Subtract Contents of Memory and Borrow from Accumulator The contents of the  memory  pointed  by the HL register  pair  and the borrow  flag are subtracted from the  contents

Fourier deconstruction, Find the Fourier series as far as the third harmoni...

Find the Fourier series as far as the third harmonic, to represent the periodic function y, given by the values in the following table. x 0 o 30

Function generator, explain the waorking principle of function generator

explain the waorking principle of function generator

Zener Diode, A Zener diode has the specifications VZ=6.8V and PDmax.=500mW....

A Zener diode has the specifications VZ=6.8V and PDmax.=500mW. Assume RZ=0. (a) Find the maximum allowable current iZ when the Zener diode is acting as a regulator. (b) If a sing

Digital communications system, Question 1 (a) Describe the functions of...

Question 1 (a) Describe the functions of the modulator and source encoder in a digital communications system. (b) By using appropriate examples, distinguish between th

Data rates in pstns, Data rates in PSTNs: A voice channel in a PSTN is ...

Data rates in PSTNs: A voice channel in a PSTN is band limited with a nominal bandwidth of 3.1 kHz. A first-cut estimate of this can be attained from Nyquist's theorem that app

Resistance of 800 m of copper cable of cross-sectional area, Find the resis...

Find the resistance of 800 m of copper cable of cross-sectional area 20 mm . Take the resistivity of copper as 0.02 Ωm.

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