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
In this case, 24 simultaneous calls can be put through switch. Generally a 24-outlet Uni-selector is used as a selector hunter. Every one of the 24 outlets is connected to one two-

Need answers of a question bank of power electronics . It is an assignment. Urgent

Q. Illustrate Signal attenuation? Signal attenuation in many channels can be offset by using amplifiers to boost the signal level during transmission. However, the amplifier al

HILDA ( Output) It is  called hold acknowledge signals it is active  high  i e it  goes high when  microprocessor receives HOLD signal.

The inputs to an SRFF are shown in Figure. Determine the value of Q at times t 1 , t 2 , and t 3 .

key performance indicators

Self Inductance If a current is passed through a coil, it creates a flux within the coil. Any attempt to change this flux will create a back emf that acts to oppose the chang

Problem (a) Figure gives the basic circuit of the diode limiter. Assuming that the diodes are ideal sketch and annotate the waveforms of the input voltage vi(t) and the load

Dry type 10KVA-3ph-440/230v Dyn11. If we decide to wound above such specification, what current to be taken i.e. phase current or line current 7.57A or 13.12A

Consider the following mechanical system: a) Write a differential equation that describes the motion for this system. b) Take the Laplace transform of this equation and