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

Node-voltage method to find the current, Q. Use the node-voltage method to ...

Q. Use the node-voltage method to find the current I through the 5- resistor of the circuit of Figure.

Why ce configuration is widely used in amplifier circuit, Q . Why CE Config...

Q . Why CE Configuration is widely used in amplifier circuit? The main utility of a transistor lies in its ability to amplify weak signals. The transistor alone cannot perform

Write short note on quantization, Q. Write short note on Quantization? ...

Q. Write short note on Quantization? Quantization: This is first step in PCM. Total amplitude range of the modulating signal is divided into a number of standard levels calle

Mips simulator, The coursework requires you to work in pairs to write a Jav...

The coursework requires you to work in pairs to write a Java application that will take a numerical representation of a MIPS program and simulate its execution. MIPS is a Load-S

Heterodyne wave analyzer, Q.   What is a wave analyzer? Explain any one tec...

Q.   What is a wave analyzer? Explain any one technique of wave analyzer giving its application also. OR Write short note on HETERODYNE Wave analyzer. OR Explai

Show binary coded decimal number system, Q. Show Binary Coded Decimal Numbe...

Q. Show Binary Coded Decimal Number System? If we analysis single digit values for hex, the numbers 0 - F, they represent the values 0 - 15 in decimal, and occupy a nibble. Fre

Sub subtract instruction, SUB Subtract Instruction This  instruction  i...

SUB Subtract Instruction This  instruction  is used to  subtract the contents of any  register  or memory location from  the contents of  accumulator. There are two  formats as

Explain mesh analysis, Mesh analysis Analysis using KVL to solve for th...

Mesh analysis Analysis using KVL to solve for the currents around every closed loop of the network and hence verify the currents through and voltages across every elements of t

Equivalent circuit of a polyphase induction machine, Equivalent Circuit of ...

Equivalent Circuit of a Polyphase Induction Machine The inductionmachinemay be regarded as a generalized transformer inwhich energy is converted and electric power is transferr

#DSP ., #The requirement is as follows- There is a signal which is in the r...

#The requirement is as follows- There is a signal which is in the range of 0 to 5Hz. This signal frequency composition is to determined. The resolution of the determination is 1Hz.

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