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
State the Advantages of expert systems -  Never "forgets" to ask a question in determining the logic -  provides consistent answers - Less skilled work force needed, ther

can you let me know how much it would be for the answer to a question that has 2 parts

Q. What do you mean by Common collector configuration? Common collector configuration:In this circuit the collector is common to both the input and the output.Such a configurat

simulate a uniform quantizer that takes as an input a vector of numbers and returns as an output the quantized vector. 1-Generate a random input vector of 10000 samples randomly in

Give the applications of carbon. Carbon : These materials used in the field of electrical engineering are manufactured from graphite and the other forms carbon as coal and so

Its not essential that a power plant uses only two rectifiers, it depends on the load there at the site and the capacity of the rectifier or SMPS. Assume the load at the site is 12

A DC shunt motor rotating at 1560 RPM is supplied from a 240-V source. The line current supplied to the motor is equal to 27 A. The shunt field resistance of the motor is equal to


Q. Slip-power controlled wound-rotor induction-motor drives? Slip power is that portion of the air-gap power that is not converted into mechanical power. The methods involving

Define Multiple Inputs - Control System When there is much more than one input to a system, the superposition principle can be employed. This is that: The response to variou