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

Semiconductor material, Semiconductor Material: Semiconductor is a mat...

Semiconductor Material: Semiconductor is a material that has a conductivity level somewhere between the extreme of an insulator and a conductor   Resistivity of a material

Clampers, what would the change after adding a registor paralelly in clampe...

what would the change after adding a registor paralelly in clampers?

Direct addressing , Direct Addressing In this  addressing  mode one  o...

Direct Addressing In this  addressing  mode one  of the  operands is the  data stored  in the memory. The memory  address of the  operand is directly  given in the instruction

8086 mostly used , Where 8086 mostly used & tell application of 8086? ...

Where 8086 mostly used & tell application of 8086? Ans) 8086 is used for common purpose like it is used in traffic signals for control purpose .It's also used for small applic

How can magnetic fields can be plot, The magnetic fields can be plot by usi...

The magnetic fields can be plot by using: i.  Compass ii.  Iron dust method  .

Calculate the amplitude of the dc component, A periodic voltage consists of...

A periodic voltage consists of sinusoidal pulses having an amplitude of 150 V (SEE DIAGRAM BELOW). Use Fourier Series Expansion to calculate: 1.       the amplitude of the DC co

Realize various dividers in the schematic representation, Q. Counters are u...

Q. Counters are used to realize various dividers in the schematic representation of the digital clock shown in Figure. The blocks labeled "logic array" are logic gate combinations

Stack pointer, stack Pointer (SP) It is also a 16 bit  register and a  ...

stack Pointer (SP) It is also a 16 bit  register and a  memory  pointer similar to  program counter. It holds  the memory  address of the  top of the stack. Stack is a  part of

Interpreter- high level language, Interpreter- High level language T...

Interpreter- High level language The interpreter is a program  which  translates the high  level  program  into  objects  program  statement wise . it reads one statement of

Working principle of ultrasonic machine, Illustrate the working principle, ...

Illustrate the working principle, equipment used,process characteristic, advantage and disadvantage of water jet machine (WJM) (a) Illustrtae the working principle of ultrasonic

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