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
DC Motor Starting When voltage is applied to the armature of a dcmotorwith the rotor stationary, no emf is generated and the armature current is limited only by the internal ar

The rectangular pulse train of Figure (a) consists of pulses of height A and duration D. Such pulse trains are employed for timing purposes and to represent digital information. Fo

To find out the largest of ten 8 bit numbers. Method: The numbers are stored in consecutive memory locations. The counter register is initialized with 0A and the address pointer po

Explain Synchronisation and Parallel Operation Generation, transmission and distribution of electric power have to be conducted in an efficient and reliable way at a reasonable

Project Garage door opener with password. Wrong password "door close" on lcd screen, correct password "door open" on lcd Screen no need the motor. Material used - Microcontroller

Define the Objectives of Load Flow Analysis The objectives of load flow analysis are: (i) To analyse an existing power system, future expansion or a new power system plan.

Q Using a combination of Uni-selectors and two motion selectors, draw a diagram of thousand line exchange and illustrate its working. Ans: The diagram for such an exchange i

This question is about linear filtering concepts using the built in filtering functions (it is not about edge detection methods). Load the MRI image of Q4 above and perform the

A bus is a collection of conducting lines that carrier's data, address, & control signals. A bus is two or many wire communication technique. A bus which communicate among two

Connection of Shunt Capacitors at  Distribution Transformer Provision of capacitors at load point is found to be hard in practice because of the additional investments needed.