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

Gis application architecture, GIS application architecture: GIS applic...

GIS application architecture: GIS application architecture should 1  Give a framework and the essential programming interfaces to enable complex GIS applications to be deve

Short note on armature reaction., Armature Reaction in DC Generator:  Arma...

Armature Reaction in DC Generator:  Armature reaction is the effect of magnetic flux set up by armature current upon the distribution of flux under the main poles.

Transistors, how fet transistor works in self bias

how fet transistor works in self bias

Digital electronics, With the use of clocked JK flip-flops, draw and explai...

With the use of clocked JK flip-flops, draw and explain the working principle of a 3-bit binary ripple counter.

Simplified operation on transistor, Simplified operation: Figu...

Simplified operation: Figure: Simple circuit to show the labels of a bipolar transistor. The essential value of a transistor comes from its capability to make use

Multiplexers and flip flops, Decoders and multiplexers are termed, medium s...

Decoders and multiplexers are termed, medium scale integration (MSI) devices; this term implies that the device is complex in construction and usually its operation as well. Below

What is own-exchange routing, Q. What is Own-exchange routing? Distribu...

Q. What is Own-exchange routing? Distributed routing or own-exchange routing enables alternative routes to be chosen at intermediate nodes. Hence the strategy is capable of res

Basic architecture of digital switching systems, Q. Explain the basic archi...

Q. Explain the basic architecture of digital switching systems. Explain in detail companding. Ans: A simple N X N time division space switch is displayed in Figure. Switch

Science day, i need to submit a still model or a working model on science d...

i need to submit a still model or a working model on science day(28 February). can you help me....

Power machines., name two types of axial flow turbines

name two types of axial flow turbines

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