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

Design an appropriate system, From a source with P in = 2.4 mW, we want to...

From a source with P in = 2.4 mW, we want to get P out = 60 mW at a distance l = 20 km from the source. α for the transmission line is given to be 2.3 dB/km. The available amplif

Give example for non-maskable interrupts, Trap is called as Non-Maskable in...

Trap is called as Non-Maskable interrupts, which is used in emergency condition.

Describe the two core-excited states, Using the optimized 6-311G(d,p) geome...

Using the optimized 6-311G(d,p) geometry determined in question 1, perform the following equivalent core calculations for any two inequivalent carbons of butadiene: (a) Equivale

Operation of zener diode, Operation of Zener Diode The Zener diode's o...

Operation of Zener Diode The Zener diode's operation depends upon the heavy doping of its p-n junction permitting electrons to tunnel from the valence band of the p-type mater

A.c. machines-the single phase alternator, The single phase alternator ...

The single phase alternator   The underlined italicised terms in the following text identifies terms that you should understand and remember. The simple two pole generator

Assmblly language, hi PA DS:1234 = AB PA DS:1235 = CD if i typed mov DX,[...

hi PA DS:1234 = AB PA DS:1235 = CD if i typed mov DX,[1234H] WHAT SHOULD I GET IN DX ?

Voltage, Voltage, current, and charge control: The collector-emitter c...

Voltage, current, and charge control: The collector-emitter current can be seen as being controlled through the base-emitter current (current control), or through the base-emi

Thevenin equivalent circuit, The circuit below will be most efficiently ana...

The circuit below will be most efficiently analyzed by obtaining the Thevenin equivalent circuit for the circuit to the left of the points (a-b) on the schematic. The capacitor is

Power, why do we use commutator?

why do we use commutator?

How numbering plan is achieved in modern telephony, Q. How numbering plan i...

Q. How numbering plan is achieved in modern telephony? Ans: The purpose of numbering plan is to uniquely identify every subscriber connected to a telecommunication network.

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