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

Add instruction , ADD Instruction Op code  format  of ADD instruction...

ADD Instruction Op code  format  of ADD instruction is Replace  the three bit code  of the register R from   to obtain the op code of the  required ADD instruction . op co

Measures of regulator quality, Measures of regulator quality: The outp...

Measures of regulator quality: The output voltage can just be held roughly constant; the regulation is fixed by two measurements: 1. Load regulation is the alteration in ou

Explain the cylindrical or round rotors, Explain the Cylindrical or Round R...

Explain the Cylindrical or Round Rotors? All synchronous machines have a similar stator design and it is actually the rotor construction that makes them different. The rotor is

Test, current and voltage

current and voltage

Push psw instruction , PUSH PSW Instruction It is similar to above  pu...

PUSH PSW Instruction It is similar to above  push  instruction but instead of normal  register Paris it use PSW as its  operand. Program status  word comprises of  the content

Obtain the truth table for the logic block, Q. Obtain the truth table for t...

Q. Obtain the truth table for the logic block shown in Figure

Microprocessor, Memory map of tpa in a personal computer and explain such o...

Memory map of tpa in a personal computer and explain such of the areas in brief

Explain memory mapped i/o scheme, Explain Memory Mapped I/O Scheme. Me...

Explain Memory Mapped I/O Scheme. Memory Mapped I/O Scheme: In such scheme there is only one address space. These address space is defined as all possible addresses which m

Sing flag - microprocessors architecture , Sing Flag If D7  ( bit left ...

Sing Flag If D7  ( bit left  most bit)  of accumulator  (which  some  exceptions) is 1 as a result  of any  arithmetical  or logical operations sign flag  is set ( bit  corresp

File flops - introduction to microprocessors, File Flops The flip fl...

File Flops The flip flop is a one storage biteable   device. The basic  bistable device stores a binary  of inputs  value. the flip flops  are categorized according  to the nu

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