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

Determine the current in the circuit and the voltage, Q. Two identical junc...

Q. Two identical junction diodes whose volt-ampere relation is given by Equation in which I S = 0.1 µA, V T = 25 mV, and η = 2, are connected as shown in Figure. Determine the cu

Variable frequency systems , Variable Frequency  Systems In this  sys...

Variable Frequency  Systems In this  systems the chopping period  T will varying but  either Ton is kept constant or T off kept constant. In  any case the off  time T off   w

Explain inverse discrete-time fourier transform, Explain Inverse Discrete-T...

Explain Inverse Discrete-Time Fourier Transform 1. Observe the same things among this formula and the inverse analogue Fourier transform: The (1/2π) factor The sign

Power transistor, Power Transistor A power  transistor  is a three laye...

Power Transistor A power  transistor  is a three layer  PNP  or NPN  semiconductor device  having  two  junctions. Three  terminals of power  transistors are collector emitter

Water.., hot and cold lime soda process

hot and cold lime soda process

Draw a schematic diagram of transformer connections, Q. Three single-phase,...

Q. Three single-phase, 10-kVA, 2400/120-V, 60- Hz transformers are connected to form a three- phase, 4160/208-V transformer bank. Each of the single-phase transformers has an equiv

Show the bode plot, Question: (a) Show the Bode Plot, showing the relev...

Question: (a) Show the Bode Plot, showing the relevant corner frequencies and slopes, for the unity feedback system whose open loop transfer function is given by: (b) T

What is expanded memory system, What is expanded memory system? EMS: Th...

What is expanded memory system? EMS: The area at location C8000H-DFFFFFH is frequently open or free. Such area is used for the expanded memory system into a XT or PC system, or

Regenerative braking control - motor control , Regenerative Braking Control...

Regenerative Braking Control In this  methods  motor  behaves like a  generator  and the kinetic energy of the  motor  and connected load is  returned to the supply. If means

Advantages of expert system, Advantages of Expert System The system, on...

Advantages of Expert System The system, once set up, requires to be tested employing data with known outcomes to see if it functions correctly. If it's being used to diagnos

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