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

What are the 8086 interrupt types, What are the 8086 interrupt types? D...

What are the 8086 interrupt types? Dedicated interrupts Type 0: Divide by zero interrupt Type 1: Single step interrupt Type 2:Non maskable interrupt Type 3: Breakpo

Explain about common channel signalling, Q. Explain about Common Channel Si...

Q. Explain about Common Channel Signalling? Common Channel Signalling (CCS), centralized maintenance and automatic faultdiagnosis and interactive human-machine interface are so

#mixed storage oscilloscope, ..Explain mixedd storage oscilloscope with ne...

..Explain mixedd storage oscilloscope with neat diagram,

Process of amplitude modulation, Q. Process of Amplitude Modulation? In...

Q. Process of Amplitude Modulation? In AM the message signal is impressed on the amplitude of the carrier signal. There are several different ways of amplitude modulating the c

Determine the current in the diode, Q. Consider the circuit shown in Figure...

Q. Consider the circuit shown in Figure. Determine the current in the diode by assuming: (a) The diode is ideal. (b) The diode is to be represented by the model of Figure 7.2

Customer data management- power supply, Customer Data Management- Power Sup...

Customer Data Management- Power Supply The concept of data warehouse and data mining could be extremely useful for the management of customer data. A data warehouse is a power

What is UNIVERSAL SERIAL BUS, What is USB? USB: The USB (UNIVERSAL SERI...

What is USB? USB: The USB (UNIVERSAL SERIAL BUS) is intended to join peripheral devices as keyboards, modems, a mouse and sound cards to the microprocessor by a serial data pat

Physics, high resistivity materials

high resistivity materials

DC Generators, The armature of a 6 pole, 600 r.p.m. lap wound generator has...

The armature of a 6 pole, 600 r.p.m. lap wound generator has 90 slots. if each coil has 4 turns, how do you calculate the number of conductors to calculate the flux per pole to gen

Achieving reforms goals using gis applications, Achieving reforms goals usi...

Achieving reforms goals using GIS applications: GIS could help in achieving the above reforms goals through various applications: •  Creation of consumer database and cons

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