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

Actual voltage reading in decimal, Prepare the assembly code to make a Digi...

Prepare the assembly code to make a Digital Volt Meter that shows the message and the correct voltage on the LCD. Once you managed to display the hex value for the conversion you w

Multiplexers, how to design a 32:1 multiplexer using two 16:1 multiplexers ...

how to design a 32:1 multiplexer using two 16:1 multiplexers and a 2:1 multiplexer?

Give a brief description of integrating circuits, Q. Give a brief descripti...

Q. Give a brief description of integrating circuits ? Integration is a summation of area. An integrating circuit produces an output voltage which is proportional to the area en

What is extended data output ram, What is extended data output RAM? EDO...

What is extended data output RAM? EDO RAM: A slight modification to the DRAM structure changes the device in an EDO (extended data output) DRAM device. Inside the EDO memory, a

Construct the corresponding transfer function, Consider the following IIR f...

Consider the following IIR filter. The initial input data sequence is given by x n = [10 15 20 15 8 6 9 0 0 0] Construct a table that shows the corresponding signal values at

Metering technologies, Metering Technologies An electric meter or ener...

Metering Technologies An electric meter or energy meter is a device in which measures the amount of electrical energy supplied to customers of an electric supply company. Elec

Binary to hexadecimal conversion, Binary  to Hexadecimal  Conversion ...

Binary  to Hexadecimal  Conversion To convert a binary  number  into  hexadecimal  divide the number into group  of four  bits  each starting from the least significant bit. Th

How to make lpg safer in the laboratory, How to Make LPG Safer in the Labor...

How to Make LPG Safer in the Laboratory The following must be observed in the laboratory: 1. The LPG cylinders should be kept outside the laboratory in a ventilated room.

Write down shockleys equation, Q. Write down Shockley's equation. What is i...

Q. Write down Shockley's equation. What is its importance? I D = I DSS [1-(V GS /V P )]^2 Shockley's equation is used to plot transfer characteristics. The transfer charac

Explain working of ring topology, Q. Explain working of Ring Topology? ...

Q. Explain working of Ring Topology? Ring Topology: In ring topology, all user nodes are connected with physical path acting as links of a chain and last user node is co

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