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

Sketch the spectrum of a standard am signal, If the message has a spectrum ...

If the message has a spectrum where K and Wf are positive constants, sketch the spectrum of a standard AM signal that uses the message. Comment on the physical signi?cance

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.

Dc generators, An eight pole dc generator has an armature wound with 768 co...

An eight pole dc generator has an armature wound with 768 conductors each capable of carrying 50A without overheating. The emf generated in each conductor is 1.5V. Calculate the th

Permeability and b-h curve for different magnetic materials, Permeability a...

Permeability and B-H curve for different magnetic materials Permeability is the ability of a magnetic circuit to create magnetic flux lines in a material or substance that prod

Design a 4-bit universal shift register, Q. Obtain a block diagram of a shi...

Q. Obtain a block diagram of a shift-left/right register using D flip-flops. Q. Design a 4-bit universal shift register. Q. (a) Show a block diagram of an SRFF connected to s

Block diagram of a 4-bit shift-right register using jkffs, Q. A shift regis...

Q. A shift register can be used as a binary (a) divide- by-2, and (b) multiply-by-2 counter. Explain. Q. Show a block diagram of a 4-bit shift-right register using JKFFs.

Transistor as a switch, Transistor as a switch: Transistors are genera...

Transistor as a switch: Transistors are generally employed as electronic switches, for both of the high power applications including switched-mode power supplies and low power

Illustrate the photo-conductive cell, Illustrate in detail digital encoders...

Illustrate in detail digital encoders. Illustrate the following with their application: Photo-conductive cell Photo-voltaic cell

Advantages of expert system, Advantages of Expert System The system, on...

Advantages of Expert System The system, once set up, requires to be tested employing data with known outcomes to see if it functions correctly. If it's being used to diagnos

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