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

Microelectronic technologies and applications, The assignment comprises two...

The assignment comprises two parts, a CPLD Design Exercise and a CPLD Design Project. The CPLD Design Exercise will enable you to acquire competance in programmable logic design

What is the significance of negative voltage, Q. What is the significance o...

Q. What is the significance of giving a negative voltage to the gate higher than that of the source?  This is done to reach the saturation at a lower of level of V DS .  The re

Compute the source current, Q. A 230-V, single-phase, 60-Hz source supplies...

Q. A 230-V, single-phase, 60-Hz source supplies two loads in parallel. One draws 10 kVA at a lagging power factor of 0.80 and the other draws 6 kWat a lagging power factor of 0.90.

Electron, Electron congratulations

Electron congratulations

Determine the turns-ratio for the transformer, a) A 230 V/25V, 50 HZ transf...

a) A 230 V/25V, 50 HZ transformer with a rated primary current of 1,2 Amps is used to supply a number of 25 V, 30 Watt halogen light bulbs. Assuming an ideal transformer and that

Boost converter - power supplies , Boost Converter The boost  convert...

Boost Converter The boost  converter has its  output  voltage always  greater than input  voltage like  a buck  converter boost  converter has two  modes.

Diode model , Find I and V in the figure using ideal diode model

Find I and V in the figure using ideal diode model

What is meant by amplification, Q. What is meant by amplification? The ...

Q. What is meant by amplification? The basic amplifying elements are, namely valves (vacuum tubes), bipolar transistors and FETs. The term "amplify" basically means to make str

Find the parameter values for channel mosfet, Q. Find the parameter values ...

Q. Find the parameter values V T and I DSS for a p- channel MOSFET with i D = 0 when v GS ≤-3 V, and i D = 5 mA when v GS = v DS =-8V.You may neglect the effect of v DS on

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