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

Switching characteristics during turn on , Switching characteristics during...

Switching characteristics during turn on A positive  gate  pulse  between  gate and  cathodeis sufficient to turn  on a thyrisotr. In  this period  thyristor  changes its stat

Series-parallel magnetic circuit, Series-Parallel Magnetic Circuit: Fi...

Series-Parallel Magnetic Circuit: Figure shows an electromagnet made of cast steel contain a coil of 500 turns wound on the central limb. The cross-sectional area of the outer

Rlc circuits, Parallel rlc circiut with a variable cap connected in series ...

Parallel rlc circiut with a variable cap connected in series with a resistor

Decimal to binary coded decimal conversions, Decimal to Binary Coded Decima...

Decimal to Binary Coded Decimal Conversions Step1. Separate the digits in the decimal number Step2. Express each of the digits in their binary equivalent Step3. Combine all o

Determine angle between incident ray and reflected ray, Assume a ray of lig...

Assume a ray of light is incident on a smooth reflecting surface at an angle of incidence of 15 degrees to the normal. What is the angle between the incident ray and the reflected

100 line exchange with two-motion line finders, In this design, there are 2...

In this design, there are 24 line finders. If any of the 100 subscribers has to get access to any of 24 two-motion selectors, it is necessary that every line finder is capable of r

Analog signal processing, Derive Equation 13-20 pertaining to the convers...

Derive Equation 13-20 pertaining to the conversion algorithm based on redefined unit capacitor

Slack running fit, Illustrate the conventional representations of the follo...

Illustrate the conventional representations of the following guide to the selection of Fits: (i) Slack Running Fit (ii) Loose Running Fit (iii) Easy Running Fit (iv) No

How transistor will be used as an amplifier, (a) How transistor will be use...

(a) How transistor will be used as an amplifier? (b) Give relation between α and β? (c) Show the biasing arrangement for the PNP transistor in common base configuration, so t

Transmission and swiching systems, using a combination of uniselectors and ...

using a combination of uniselectors and two motion selectors, draw a schematic of thousand line exchange and explain its working

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