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 THE FUNCTION OF DELAY LINE IN CRO

Consider a three-phase induction motor with a normal torque-speed characteristic. Neglecting the effects of stator resistance and leakage reactance, discuss the approximate effect

A pure sine wave with a frequency of 100Hz is sampled at 150Hz. At which one of the following frequencies would you expect an alias?

Power Distribution You will study about the legislative measures that have been taken by our government to address these challenges. In particular, we discuss the Energy Conse

Use basic circuit theory to convert the "T" circuit below into the equivalent "π". Hint: Remember to disconnect the voltage source and the load.

Military Services - Application of Software Defined Radio With the use of SDR technology, the military can reduce radio development costs by providing a common platform to whi

The power transferred across the air gap of a two pole inductionmotor is 24 kW. If the electromag netic power developed is 22 kW, find the slip. Calculate the output torque if the

Consider a forward-biased diode with a load resistance. Let the static volt-ampere characteristic of the diode be given by Equations, and typically represented by Figure. (a) Fo

What is the difference between the unit step function u(n+4) and the time-scaled function u(2n+8)

State the features of Washing machines Microprocessor would be used to control the below features, for instance: - Water temperature -  Time for every cycle -  Wash cy