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

Energy conservation, Energy Conservation Our country has a vast poten...

Energy Conservation Our country has a vast potential of energy saving. It is estimated in which measures for energy conservation and improving energy efficiency have the pote

Branch operations , Branch Operations Normally  the program  executes ...

Branch Operations Normally  the program  executes in  a sequence. The contents of the program counter register are incremented by  one during  the execution  of current  instr

Transformers., Calculations of sending line voltage

Calculations of sending line voltage

Design the synchronous sequential circuit for state diagram, Design the Syn...

Design the Synchronous Sequential Circuit for State Diagram Illustration: - We wish to design the synchronous sequential circuit whose state diagram The kind of flip-f

Competition, how to be prepare for gate....

how to be prepare for gate....

Explain about folded network, Q. Explain about Folded network? Folded ...

Q. Explain about Folded network? Folded network: When all the outlets/inlets are connected to the subscriber lines, logical connection appears as displayed in figure. In this

Control, The goal of this project is to model a system and to design a cont...

The goal of this project is to model a system and to design a controller for the system so that the closed-loop system performs satisfactorily.

Calculate the minimum sampling frequency, Three sine waves along with frequ...

Three sine waves along with frequencies 100Hz, 200Hz and 350Hz and with amplitudes of 1V, 2V and 1.5V correspondingly, are added together to make a single waveform. What is the min

Determine whether the systemnoise, The expression given in Problem for (S 0...

The expression given in Problem for (S 0 /N 0 )PCM is plotted for a sinusoidal message in Figure to show the performance curves for a PCM system using a polar waveform. (a) Comm

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