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 are the Advantages of digital cameras Advantages of digital cameras over manual cameras include: no processing costs (As there is no need to develop film or make prints),

Q. Explain about Adaptive Control System? Another type of control system that makes use of the computer is known as adaptive control, which is functionally represented in Figur

The magnetic fields can be plot by using: i.  Compass ii.  Iron dust method  .

Q. Explain working of three-phase transformers? Transformation in three-phase systems can be accomplished in either of two ways: (1) connecting three identical single-phase tra

Give three reasons why a chamfer shouldn't be considered an "unimportant" dimension. When conducting an audit, what is the first step and what is its purpose? Why will calcul

CPU Based Exchange:   In centralized control, all control equipment is replaced by a single processor which should be quite powerful. It should be capable of processing 10 to 100 c

Quality Tools for Improvement The environment of the business of power sector has been modified recently largely because of partial deregulation of this sector. The required h

what is crossmagnetisation in dc generator

#questsdfsdfsdfsion..

What is use of co-processor in a typical microprocessor based system. This is a processor that works in parallel with the major processor. This has its own set of specialized i