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

Explain about blocking probabilityand grade of service, Q. Explain about bl...

Q. Explain about blocking probabilityand Grade of service? And what do you mean by delay systems in telecommunication networks? Ans: Grade of service: In loss systems, traff

Find the voltage drop and current through each component, A 15 volts source...

A 15 volts source is applied to a series 150 μH inductor and 169 pF capacitor. The resistance of the inductor plus the connecting wires is 1,6 Ω. Determine the voltage drop and

Architecture for Real-time systems, The paper should be written in the form...

The paper should be written in the format of a paper to be submitted to a conference (IEEE). There should be a minimum of three journal paper references. The topic should be a disc

Working of microprocessor control, Q. Working of Microprocessor Control? ...

Q. Working of Microprocessor Control? The microprocessor, which has rapidly become a key component in digital control systems, and its associated circuits function as the digit

Two byte instructions , Two byte  Instructions In these  instruction ...

Two byte  Instructions In these  instruction the first byte  specifies  the operations code  and the  second byte  specifies the operand. To identify  two byte  instructions o

Determine the critical load, A rocket on a test stand is modeled as a colum...

A rocket on a test stand is modeled as a column clamped at x = 0 and free at x = L, and subjected to compressive force P applied at the free end. The direction of load P remains

Working principle of an electronic voltmeter, Q.   Explain the working prin...

Q.   Explain the working principle of an electronic voltmeter. Sol. Electronic voltmeter Basic Voltmeter: The addition of a series resistor, or multiplier, converts the

Performance benchmarking through indicators, Performance Benchmarking throu...

Performance Benchmarking through Indicators There are various indicators techniques for benchmarking. It is also not probable to benchmark all the indicators, collect and ana

Silicon Photonics, How does a Mach-Zehnder Modulator work in Silicon?

How does a Mach-Zehnder Modulator work in Silicon?

Downsampling in dsp, #ques1. (MATLAB) Generate 100 samples of the signal ...

#ques1. (MATLAB) Generate 100 samples of the signal  = sin (0.125). We want to decimate this signal using D = 2. • Design a 25-order lowpass filter using the Parks-McClella

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