Change of phase, Electrical Engineering

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?

Posted Date: 2/26/2013 12:06:39 AM | Location : United States







Related Discussions:- Change of phase, Assignment Help, Ask Question on Change of phase, Get Answer, Expert's Help, Change of phase Discussions

Write discussion on Change of phase
Your posts are moderated
Related Questions
Q. For a parallel-plate capacitor with plates of area A m 2 and separation d m in air, the capacitance in farads may be computed from the approximate relation Compute the



Explain BOUND instructions in 8086 family with example and their effect on flag. BOUND: The BOUND instruction, that has two operands, compares a register along with two word

Transistor A transistor is a semiconductor device that is employed to amplify and switch electronic signals. It is made up of a solid piece of semiconductor material, with min

3) A sine wave oscillator, in effect, converts

Q. How does a MOSFET amplify electrical signals? While a minimum requirement for amplification of electrical signals is power gain, one finds that a device with both voltage an

Revenue Protection and Technology Interventions in Metering The power supply industry has reached an impasse where urgent steps are needed to improve the financial health of t

Q. Determine the open-circuit output voltage v o of the system shown in Figure as a function of the input voltage v i .

how can I simulate air variable capacitors in cst simulator?