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

Give examples of natural insulating materials, Give four examples of natura...

Give four examples of natural insulating materials. Illustrations of the natural insulating materials are rubber, cotton, wood and mica.

Express the storedmagnetic energ, A relay is essentially an electromechanic...

A relay is essentially an electromechanical switch that opens and closes electrical contacts. A simplified relay is represented in Figure. It is required to keep the fenomagnetic p

generator, diagram of static generator

diagram of static generators

Explain the cmp instruction, Explain the CMP instruction . CMP: The comp...

Explain the CMP instruction . CMP: The comparison instruction is a subtraction which changes only the flag bits; the destination operand certainly not changes. A comparison is h

The programming model of 8085 microprocessor , The  programming  Model of...

The  programming  Model of 8085 Microprocessor The programming  model  of 8085 microprocessor is  shown in figure  below in this  model  various 8 bit  and 16  bit registers a

What are shift registers, What are shift registers? Design a 8 bit shift re...

What are shift registers? Design a 8 bit shift register with features like PISO, SISO, SIPO and PIPO.

#title., what is plane transmission grating/?

what is plane transmission grating/?

Equivalent circuit of a dc machine, Equivalent Circuit of a DC Machine ...

Equivalent Circuit of a DC Machine A review of the material presented with regard to elementary direct-current machines can be helpful at this stage to recall the principles of

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