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

Equivalent circuit of a field-effect transistor, Q. The circuit shown in Fi...

Q. The circuit shown in Figure is the equivalent circuit of a field-effect transistor (FET) amplifier stage. (a) Determine the y-parameters. (b) For values of µ = g m /g d >

Aerodynamic principles & aircraft design, Define the aircraft axes & degree...

Define the aircraft axes & degrees of freedom. Analyse the different maneuvers that can be done by an aircraft.

Effect of power factor correction capacitors, For a 50kW three phase rectif...

For a 50kW three phase rectifier connected at 415 V to a point of common coupling with a short circuit capacity 500kVA modelled as an inductive source, design filters to make the s

Edc, transistor biasing stabilization problems

transistor biasing stabilization problems

Explain the parallel in - parallel out shift registers, Explain the Paralle...

Explain the Parallel In - Parallel Out Shift Registers? For "parallel in - parallel out" shift registers all data bits show on the parallel outputs immediately following the si

Magnetic field, what is the difference between static and induced emf

what is the difference between static and induced emf

Commercial losses in electrical systems, Commercial Losses in Electrical Sy...

Commercial Losses in Electrical Systems Commercial losses are caused by pilferage, theft, defective meters, and errors in meter reading and in estimating un-metered supply of

Analogue electric assignment, i have assignment about wien bridge oscillato...

i have assignment about wien bridge oscillator i need help to how to degsin the circuit using ltpsic

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