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

Common-collector configuration, Common-collector configuration:  The ...

Common-collector configuration:  The common-collector that is abbreviated CC transistor configuration is displayed in figure.  In this type of configuration, the collector is

Transistor, what is bias compensation

what is bias compensation

Determine the regulation of three-phase, A three-phase, six-pole, wye-conne...

A three-phase, six-pole, wye-connected synchronous generator is rated at 550 V and has a synchronous reactance Xs = 2 . When the generator supplies 50 kVA at rated voltage and a p

Thunderstrom detector, Ask question #how to construct thunderstrom detector...

Ask question #how to construct thunderstrom detector with circuit breaker.

Determine the atomic weight of an atom, Atomic weight of an atom is (A...

Atomic weight of an atom is (A) Sum of the number of protons and neutrons. (B) Sum of the number of protons and electrons. (C) Sum of the number of electrons and n

Measures for improving joints and connection, Measures for Improving Joints...

Measures for Improving Joints and Connection 1. Spacing of poles: The spacing between poles (for overhead lines) is also an important requirement. Long spans will result in

Write a report on various types of diodes, a. write a report (at least  2 p...

a. write a report (at least  2 pages ) on various types of diodes( Show and explain  the theory, symbol, circuit, characteristics, data sheets and applications circuits using the d

Calculate the value in ohms of the rotor resistance, The synchronous speed ...

The synchronous speed of a wound-rotor induction motor is 900 r/min. Under a blocked-rotor condition, the input power to the motor is 45 kW at 193.6 A. The stator resistance per ph

New asic design flow, There is a requirement to propose a new ASIC design f...

There is a requirement to propose a new ASIC design flow within your company, from VHDL design capture through to GDSII tape out.  It is very important that the flow includes all t

What is a control word, What is a control word? It is a word kept in a ...

What is a control word? It is a word kept in a register (control register) used to control the operation of a program digital device.

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