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

Derive the transfer function, A data hold is to be constructed that reconst...

A data hold is to be constructed that reconstructs the sampled signal by the straight-line approximation shown in Figure. Note that this device is a polygonal data hold with a dela

amp circuit , Refer to the op amp circuit shown below. Let R 1 = ...

Refer to the op amp circuit shown below. Let R 1 = 140 k_, R 2 = 10 k_, R 3 = 10 k_, R 4 = 20 k_, RL = 10 k_. Assume the op amp is ideal. Find the equation relating the

Balance Business Score Card in KPI, Balance Business Score Card in KPI ...

Balance Business Score Card in KPI Information Age The current era is driven by the information. It is a revolutionary transformation and industries are competing in th

Inquire, how we can say that 3 phase induction motor is short curcited pra...

how we can say that 3 phase induction motor is short curcited practically?

Electronic, how a combination clipper works?

how a combination clipper works?

Explain thevenin''s theorem procedure, Thevenin's theorem procedure:   1. ...

Thevenin's theorem procedure:   1.  Open circuit R L and find Thevenin's voltage (V TH ). 2.  Find Thevenin's resistance (R TH ) when voltage source is short circuit or curren

Power distribution, Determine the current through each parallel branch of t...

Determine the current through each parallel branch of the system

Explain antiferromagnetism magnetic materials, Explain Antiferromagnetism m...

Explain Antiferromagnetism magnetic materials. Antiferromagnetism : Magnetic dipoles are aligned anti-parallel to each other. Antiferromagnetic type materials are not as famil

Illustrate sources and loads, Q. Illustrate Sources and Loads? A source...

Q. Illustrate Sources and Loads? A source-load combination is represented in Figure. A node is a point at which two or more components or devices are connected together. A part

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