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

What is the voltage gain, Q. What is the voltage gain? voltage gain is ...

Q. What is the voltage gain? voltage gain is the ratio of output voltage to input voltage. It is represented as Av,vo-voltage output,Vi-voltage input,Ic-collector current,Ie

Calculate k for n-channel enhancement mosfet, Q. An n-channel enhancement M...

Q. An n-channel enhancement MOSFET operates in the active region with very large V A , v GS = 6V, V = 4 V, and i = 1 mA. Calculate K.

Opto couplers, Is there an opto-coupler that has a blocking voltage, VRRM, ...

Is there an opto-coupler that has a blocking voltage, VRRM, of greater than 800 volts? Perhaps, 1200 or 1600 volts? The manufacturer?

Magnitude comparator, circuit diagram of 2 bit magnitude comparator

circuit diagram of 2 bit magnitude comparator

For the given circuit determine voltage, Q. For the circuit shown in Figure...

Q. For the circuit shown in Figure, determine v out (t).

Show power and power factor in ac circuits, Q. Show Power and Power Factor ...

Q. Show Power and Power Factor in ac Circuits? Power is the rate of change of energy with respect to time. The unit of power is a watt (W), which is a joule per second (J/s). T

Conditional call instruction, Conditional Call Instruction Similar  to ...

Conditional Call Instruction Similar  to conditional  jump  instructions there are conditional call  instructions  also based on various  flags.

Weighted resistor and the r-2 r ladder d/a converters, Q. What is the basic...

Q. What is the basic difference between the weighted resistor and the R-2 R ladder D/A converters?

Demand meters, Demand Meters Demand meters measure volt-amperes (in kV...

Demand Meters Demand meters measure volt-amperes (in kVA), that merge both reactive (reflected) and actual (consumed) power. In its easiest form, a demand meter has a gauge wh

engine-based combined heat and power, In this assignment, you will investi...

In this assignment, you will investigate the low-carbon technology that would be most suitable to provide heat and power for a domestic building. • Using information try to iden

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