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

What is an oscillator and show the advantages of oscillators, Q. What is an...

Q. What is an oscillator? Discuss the advantages of Oscillators ? An oscillator is a system consisting of active and passive circuit elements to produce a sinusoidal or other r

Shunt reactor, what are the basic principles of shunt reactor and it''s ope...

what are the basic principles of shunt reactor and it''s operation system

Automatic meter reading and remote meter reading, Automatic Meter Reading a...

Automatic Meter Reading and Remote Meter Reading Automatic Meter Reading (AMR) and Remote Meter Reading (RMR) elaborate several systems which permit meters to be checked with

What do you eman by digital circuits, Q. What do you eman by Digital Circui...

Q. What do you eman by Digital Circuits? The use of nonlinear devices (BJT and FET) in constructing linear amplifiers. Although these devices are inherently nonlinear, their op

Inr increment instruction, INR (Increment )  Instruction This  instruct...

INR (Increment )  Instruction This  instruction is used to  increment  the contents  of any  register or memory  location by one. There  are two  format.

Give the properties and application of glass, Give the properties and appli...

Give the properties and application of glass. Glass - It is an inorganic material made by the fusion of various metallic oxides. The properties of glass are as - Glass is

Coupling, different coupling methods

different coupling methods

Hot line maintenance, how do you define the expertise for this hot line mai...

how do you define the expertise for this hot line maintenance?

Rlc - rotate accumulator left instruction , RLC  Rotate Accumulator Left I...

RLC  Rotate Accumulator Left Instruction This  instruction also rotates the contents of the accumulator towards  left by one bit. The  D 0 bit  moves  to D 1  bit moves to D

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