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
Permanent magnets are made of (A)  Soft magnetic materials.            (B) Hard magnetic materials. (C) Semi conductors.                        (D)  Super conductors.

Working out the function of a combination of gates? Truth tables are able to be used to work out the function of a combination of gates. Inputs Outputs

AC Circuit: This topic explain the basic concepts of single and three-phase ac system. Unit provides the thorough analysis and derivations as required by topics. Here we find

Q. Figure can also be considered as a simple model of a magnetically operated relay that is commonly used for the automatic control and protection of electric equipment. Consider t

Q. A two-pole rotating machine with a singly excited magnetic field system as its stator and a rotor (that carries no coil) has a stator-coil inductance that can be approximated by

Name the materials used in case of Bimetals and give reasons. Bimetals : Alloy of nickel and iron along with low value of coefficient of thermal expansion are utilized as

disadvantages of shunt&series clippers

Q. Write a note on emitter follower? The emitter follower (EF) configuration is shown The emitter follower (EF) configuration is shown The EF amp has a voltag

The growth in communications over the past 60 years has been phenomenal. The invention of the transistor in 1947 and the integrated circuit and laser in 1958 have paved the way to

What do you understand by DB assembler directive?   DB (Define Byte): The DB directive explains by a byte-type variable (that is a variable that occupies one byte of memo