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
What is DMX? It is a communications protocol between step motors, actuators and an electronic circuit. A kind of language among elements there different manufacturers can use c

Maximum power transfer theorem

What is a co-processor? 8087 NDP (numerical data processor) is also termed as math co-processor that is used in parallel with the major processor for number crunching applicat

For the 3-bit 2 n -R D/A converter of Figure, calculate the analog output voltage when the input is (a) 100, and (b) 010. Solution a. For the binary input 100, switches con

Preventing Leakages at Insulators Leakages at insulators, cracking of insulators and flashover across insulators frequent cause outages and give output in loss of revenue. Pol

Inductive Logic Programming : Now here having studied a non-symbolic approach to machine learning on Artificial Neural Networks then we return to a logical approach, namely In

Electrical network details: 1          single line diagrams with conductor sizes, transformer locations, consumer location, lengths, capacitors, and load, etc., 2

Define the term real time clock. A real-time clock maintains the time in real time, which is, in hours and minutes. For the real-time clock the software contains an interrupt

Case 2 ( A>B) Suppose XX = 05H ( stored  in A ) And  YY = 02H ( stored  in B). Then carry  flag will  reset by CMP instruction, since  A> B in this  case JNC  will transfer the

Q. From a three-phase, 60-Hz system, through a motor-generator set consisting of two directly coupled synchronous machines, electric power is supplied to a three-phase, 50-Hz syste