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

Find the line current delivered by the source, Q. Balanced wye-connected lo...

Q. Balanced wye-connected loads drawing 10 kW at 0.8 power factor lagging and 15 kW at 0.9 power factor leading are connected in parallel and supplied by a 60-Hz, 300-V, three-phas

Chemistry, Write short note on hardness of water and its units

Write short note on hardness of water and its units

Design a circuit for indicate the connection of a battery, You are asked to...

You are asked to design a circuit that indicates if a 12 V battery has been connected the correct way around to two terminals, A and B. To do this, you have chosen to use a special

Factors of contributing to losses in service cables, Factors of Contributin...

Factors of Contributing to Losses in Service Cables 1. Tapping of underground service cables: The service cables must be visible so that tapping of cables can be detected. U

Resultant force, State and prove parallelogram law of forces and explain i...

State and prove parallelogram law of forces and explain it''s applications

Determine the voltage across resistor, Determine the voltage across the 20-...

Determine the voltage across the 20- resistor in the following circuit of Figure (a) with the application of superposition.

Circuit with inductive load, Circuit with inductive load  Electromagnet...

Circuit with inductive load  Electromagnetic induction When a conductor is moved across a magnetic field so as to cut by the lines of force (or flux, an electromotive force

Single direction pump, Modify the design of the circuit shown in FIGURE and...

Modify the design of the circuit shown in FIGURE and draw a circuit diagram to provide rotary actuation in both directions using a single direction pump (to replace the bi-directio

Electricity, Describe the nature of electricity

Describe the nature of electricity

Derive the equations of the self bias circuit, Q. Derive the equations of t...

Q. Derive the equations of the self bias circuit? A circuit which is used to establish a stable operating point is the self biasing configuration. The circuit is shown in Fig

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