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 capacitance per unit length, Write a program implementing the c...

Write a program implementing the conjugate gradient method (un-preconditioned). Solve the matrix equation corresponding to a finite difference node-spacing, h = 0.02m in x and y di

Microprocessor, Memory map of tpa in a personal computer and explain such o...

Memory map of tpa in a personal computer and explain such of the areas in brief

When mt2 is negative and g is positive , When MT 2 is Negative  and g is ...

When MT 2 is Negative  and g is positive In this  case  gate  current  flows  through  junctions P 2 N 2   electrons  are injected from  N 2   layer to  P 2   a result  junct

Digital electronics, Design a recycling MOD 19 up counter using JK FFs. In ...

Design a recycling MOD 19 up counter using JK FFs. In your design, include the logic circuit diagram and the timing diagram output that counts from 000002 = 010 to 100112 = 1910. C

Followings are the disadvantages of plc - stepper motor , Followings are th...

Followings are the Disadvantages of PLC a.Too much  work  required in  connecting wires. b.Difficulty with changes or replacements. c.Difficulty in finding  errors  requi

Define branch prediction logic in pentium, Define branch prediction logic i...

Define branch prediction logic in Pentium. Branch prediction logic in Pentium: The Pentium microprocessor utilizes branch prediction logic to decrease the time required for a

Evaluate the condition on the amplifier noise temperature, Alow-noise trans...

Alow-noise transducer is connected to an instrumentation system by a cable that generates thermal noise at room temperature. The information-bearing signal has a bandwidth of 6 kHz

Sequential circuit, a 4 bit synchronous counter uses flip flops with propag...

a 4 bit synchronous counter uses flip flops with propagation delay times of 15ns each. what will be the maximum possible time requires for change of state?

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