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

Determine the antennas power gain and beamwidth, Q. A paraboloidal antenna ...

Q. A paraboloidal antenna has an aperture ef?ciency of 0.6 and a diameter D = 100λ at 6 GHz. Illumination by the feed is such that the beamwidths of the principal-plane secondary p

Power transistor, Power Transistor A power  transistor  is a three laye...

Power Transistor A power  transistor  is a three layer  PNP  or NPN  semiconductor device  having  two  junctions. Three  terminals of power  transistors are collector emitter

Basic circuit elements, Define inductance.Explain the classification of ind...

Define inductance.Explain the classification of inductors

Electrical Safety Management, What will this voltmeter register when connec...

What will this voltmeter register when connected to a battery as shown(assume a battery voltage of 6 volt)?

Machine control instructions , Machine Control Instructions Instructio...

Machine Control Instructions Instructions used to control  various machine operations are kept  in this group.

Show the classifications of data network, Q. Show the Classifications of Da...

Q. Show the Classifications of Data Network? Classifications of Data Network: Data Networks are categorized according to their geographical coverage: • Wide area networks

Control system, model reference adaptive controller for interacting coupled...

model reference adaptive controller for interacting coupled tank

Evaluate the available received power, (a) Some antennas have a physical ap...

(a) Some antennas have a physical aperture area A that can be identified and is related to the effective area A e by A e = ρ a A, where ρ a is known as the aperture efficiency.

Rectifiers and inverters, Normal 0 false false false EN...

Normal 0 false false false EN-IN X-NONE X-NONE RECTIFIERS AND INVERTERS

Explain dielectric current, Dielectric: Insulator that is used among th...

Dielectric: Insulator that is used among the two plates of a capacitance is called as dielectric.  Electric field exists in the dielectric and the flux density depends on th

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