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

Field Service Enginer, Give three reasons why a chamfer shouldn''t an "unim...

Give three reasons why a chamfer shouldn''t an "unimportant" dimension

Transformes, how to calculate the sending line voltage

how to calculate the sending line voltage

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

Storage delay and transistor alpha- beta, Turn-on, turn-off, and storage de...

Turn-on, turn-off, and storage delay: The Bipolar transistor shows a few delay characteristics while turning on and off. Most of the transistors, and particularly power transi

The fundamental frequency , The frequency domain representation of a signal...

The frequency domain representation of a signal is shown  below: i. What are the fundamental frequency and the corresponding period of this signal (shown in Figure )? ii.  Pl

Explain polyphase induction motor, Q. Explain polyphase induction motor? ...

Q. Explain polyphase induction motor? The polyphase induction motor operates with polyphase alternating current applied to the primary winding, usually located on the stator of

Compute the real power and inductive load, Q. A 60-Hz, 440-V, three-phase s...

Q. A 60-Hz, 440-V, three-phase system feeds two balanced wye-connected loads in parallel. One load has a per-phase impedance of 8 + j3  and the other 4 - j1 . Compute the real po

Transistor, what part the transistor plays in the circuit

what part the transistor plays in the circuit

Field current and the armature terminal voltage, Consider the operation of ...

Consider the operation of a dc shuntmotor that is affected by the following changes in its operating conditions. Explain the corresponding approximate changes in the armature curre

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