Change of phase, Electrical Engineering

Assignment Help:

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?


Related Discussions:- Change of phase

Parallel operation of interconnected synchronous generators, Parallel Opera...

Parallel Operation of Interconnected Synchronous Generators In order to assure continuity of the power supplywithin prescribed limits of frequency and voltage at all the load p

Principal of bipolar junction transistor, Principal of Bipolar junction tra...

Principal of Bipolar junction transistor: A bipolar junction transistor (BJT) is a three-terminal electronic device that constructed of doped semiconductor material and might

What do you mean by frequency response, Q. What do you mean by Frequency Re...

Q. What do you mean by Frequency Response? As with all electronic circuits, op amps have limited frequency response. Because of the negative feedback of the circuit, the passba

Hilda output - externally initiated signals , HILDA ( Output) It is ...

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

Compute the signal-to-noise ratio, Q. (a) An ampli?er with F 0 = 3 or 4.77...

Q. (a) An ampli?er with F 0 = 3 or 4.77 dB, f 0 = 4 GHz, and BN = 14 MHz is used with an antenna forwhich T a =200K. The connecting path loss is 1.45, or 1.61 dB at a physical t

What is a co-processor, What is a co-processor? 8087 NDP (numerical da...

What is a co-processor? 8087 NDP (numerical data processor) is also termed as math co-processor that is used in parallel with the major processor for number crunching applicat

Alumel and chromel wires (KP and KN), how do i figure up the resistance on ...

how do i figure up the resistance on Alumel and chromel wire stranded .080 dia 19 stands?

Describe CCIT hierarchical structure, Q. Describe CCITT  hierarchical  stru...

Q. Describe CCITT  hierarchical  structure  of  switching  and  routing  using  block schematic.  Ans: Hierarchical network are capable of handling heavy traffic where req

Explain the working of a single stage rc coupled amplifier, Q. Diagram, exp...

Q. Diagram, explain the construction of a single stage RC coupled amplifier? An RC Coupled amplifier consists of a transistor connected in the emitter configuration with neces

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd