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

Explain law all point on wave front seems as new wave source, Whose princip...

Whose principle or law states that each point on a wave front may be considered a new wave source? Is it: w) Snell's Law x) Huygen's Principle y) Young's Law z)

Find the total per-phase inductance, A 300 km, 3-phase, 50Hz transmission l...

A 300 km, 3-phase, 50Hz transmission line has spacing as shown in Figure. Each phase of the line consists of a bundle of three conductors. (a) Find the total per-phase inductanc

What is transient program area, What is TPA (transient program area)? T...

What is TPA (transient program area)? The memory system is divided in three major parts: transient program area, System is and XMS that is extended memory system.

Sinusoidal inverter, i am going to make a sinusoidal inverter as my final y...

i am going to make a sinusoidal inverter as my final year project kindly help me in this regard.How can i make this project?

Name the effects of electric current, Name the Effects of electric current ...

Name the Effects of electric current There are three Effects of electric current:- A) magnetic effect B) chemical effect C) heating effect

Explain working of single-phase induction motors, Q. Explain working of Sin...

Q. Explain working of Single-Phase Induction Motors? For reasons of simplicity and cost, a single-phase power supply is universally preferred for fractional-horsepower motors.

Plagiarised Content, Your site is full of plagiarised content even though y...

Your site is full of plagiarised content even though you claim to be and I quote "Plagiarism Free". You should not be charging for this content, the site and service is a fraud.

Detection and handling of gas leakage, Detection and Handling of Gas Leakag...

Detection and Handling of Gas Leakage : If you are using a toxic gas or have a store for it you must have some devices to indicate the leakage, if any. Though numerous monitoring

What is asynchronous data transfer, What is asynchronous data transfer? ...

What is asynchronous data transfer? It is a data transfer method which is used when the speed of an I/O device does not match with the speed of the microprocessor. Asynchronous

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