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

Senior Design Robotic Arm Project, This is basically a simple senior design...

This is basically a simple senior design project where the professors are giving us a limited budget and providing us with an Arduino Board. (We can use rasberry pi, beagle bone, e

What minimum value of coupling resistance, Q. It is desired to have a sag o...

Q. It is desired to have a sag or tilt of no more than 10% when a 50Hz square wave is impressed on an amplifier stage. The output circuit resistance is Rv=1K. What minimum value of

Semiconductor diode, Semiconductor Diode: the semi conductor diode is ...

Semiconductor Diode: the semi conductor diode is formed by simply bringing n and p tripe material together (constructed from same base ge and si), at the instant the two mater

Explain the phenomenon of breakdown in dielectric materials, Explain the ph...

Explain the phenomenon of breakdown in dielectric materials. Breakdown in dielectric materials: This electric strength at breakdown is explained as the minimum electric stress

Draw the equivalent circuits referred to the high-voltage, A single-phase, ...

A single-phase, 50-kVA, 2400:240-V, 60-Hz distribution transformer has the following parameters: Resistance of the 2400-V winding R1 = 0.75 Resistance of the 240-V winding R2

Explain the energy bands in solids, Explain the energy bands in solids. ...

Explain the energy bands in solids. There are as several energy bands in a solid as there are energy levels in the parent atoms. Many electrical properties of significance

Self inductance , If a current is passed through a coil, it creates a flux ...

If a current is passed through a coil, it creates a flux within the coil. Any attempt to change this flux will create a back emf that acts to oppose the change.   Consider again

Stack operation, Stack Operation Stack is a group of memory  locations...

Stack Operation Stack is a group of memory  locations which  are part of the  same read write memory  used for  storing  data  temporarily  during the execution of the  progra

VLSI, Simplify using k-map f(A,B,C,D)=?M(4,6,10,12,13,15) Using behavioral ...

Simplify using k-map f(A,B,C,D)=?M(4,6,10,12,13,15) Using behavioral modeling in xilinx VHDL

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