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

high frequency electronic ballast - power supplies , Normal 0 ...

Normal 0 false false false EN-IN X-NONE X-NONE   High Frequency   Electronic Ballast

General purpose registers, General  Purpose  Registers Registers B, C...

General  Purpose  Registers Registers B, C ,D, E H , and L   are 8 bit  general  purpose  registers. These  registers store  8 bit  data  temporarily  for processing. Some

Short note on types of enclosure of machine, Q.   Write a short note on typ...

Q.   Write a short note on types of enclosure of machine. Sol.       The various types of d.c. machine :              (1) Magnetic frame or Yoke              (2)

Digital electronics, Design a 4-bit synchronous counter that has the follow...

Design a 4-bit synchronous counter that has the following sequence: 0 ?4? 9?12 ? 14 ?15 and repeat using: i) JK FF ii)D FF

Magnet, Magnetic materials

Magnetic materials

Which are the three basic configurations of fet amplifier, Q. Which are the...

Q. Which are the three basic configurations of FET amplifiers? The three basic configurations of FET amplifiers are · Common source(CS)- It is most frequently used as it pro

Define the software defined radio, Software Defined Radio (SDR) is an advan...

Software Defined Radio (SDR) is an advanced radio technology in which flexibility is achieved in using radio functions such as modulation and demodulation of radio signals are carr

What do you eman by digital circuits, Q. What do you eman by Digital Circui...

Q. What do you eman by Digital Circuits? The use of nonlinear devices (BJT and FET) in constructing linear amplifiers. Although these devices are inherently nonlinear, their op

Calculate the fraction of particles - top plate, Consider a colloidal suspe...

Consider a colloidal suspension of latex particles confined between two plates. The plates are charged, so there is an electric potential difference V between them (as shown). The

Pdc, disadvantages of shunt&series clippers

disadvantages of shunt&series clippers

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