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
1- Φ Half Bridge Inverters 1-Φ bridge  inverter may be  of two  type 1-? half  bridge  and 1-? full  bridge  inverter. 1-? half bridge  inverter with resistive load to explain

.coments on the limitation of the superposition theorem

advantages and disadvantages of inductive coupling

Q. Consider the inverting integrator circuit shown in Figure. Let C = 0.4µF and R = 0.1M. Sketch v o for a period of 0.5 s after the application of a constant input of 2 V at the

For parity Flag  JPE ( jump on Parity even ) and  JPO  ( Jump or Parity Odd) Instruction JPE  transfer  the execution of the  program  to the specified memory  address i


Switching characteristics during turn on A positive  gate  pulse  between  gate and  cathodeis sufficient to turn  on a thyrisotr. In  this period  thyristor  changes its stat

i dont understand why equalizer connection is not used in wave windings?

When a machine has more than two poles, only a single pair of poles needs to be considered because the electric, magnetic, and mechanical conditions associated with every other pol

Draw a relay construction diagram and briefly explain the operation of a relay. Define the terms normally open and normally closed. Define the terms Set and Reset for relays.