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

Compare call and push instructions, Compare CALL and PUSH instructions ...

Compare CALL and PUSH instructions CALL PUSH When CALL is implemented the microprocessor automatically stores the 16-bit address of the instruction next to CALL on the sta

Describe pulse dialling, Q. Describe Pulse dialling? Pulse dialling: ...

Q. Describe Pulse dialling? Pulse dialling: 1.  Generated through make and break contact. 2.  DC Current pulse is generated. 3.  Each number is separated by a short

Transistor in the common base configuration, Draw the circuit of transistor...

Draw the circuit of transistor in the common base configuration. Draw the Active, saturation and cut-off region. List the characteristics of Ideal Op-Amp. Sketch the pin diagram

Explain protected mode interrupt, Explain protected mode interrupt. In...

Explain protected mode interrupt. In this mode, interrupts have exactly similar assignments as in real mode, but the interrupt vector table is not same. In place of interrupt

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 the working of depletion mosfet, Q. Explain the working of depletio...

Q. Explain the working of depletion MOSFET ? The gate voltage can control the resistance of the n-channel but as the gate is insulated from the channel, we can apply either a p

Drain characteristics of fet, Q. In The Drain Characteristics Of FET What D...

Q. In The Drain Characteristics Of FET What Does The Region At Pinch Off? Field Effect Transistors (FETs) utilize a conductive channel whose resistance is controlled by an appl

Explain about floating point numbers, Q. Explain about Floating Point Numbe...

Q. Explain about Floating Point Numbers? The IEEE Standard 754 floating point is the most common representation today for real numbers on computers. There are numerous ways

Circuit of a common drain fet amplifier and explain, Q. Draw the circuit of...

Q. Draw the circuit of a common drain FET amplifier and explain. FET amplifier circuit The weak signal is applied between gate and source and amplified output is obtained

Explain resistivity of conducting materials, Explain factors that change th...

Explain factors that change the resistivity of conducting materials. Temperature- Electrical resistance of most metals rises with increase of temperature whereas those of sem

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