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

Electrical System Design, List four sources of information which are essent...

List four sources of information which are essential to the designer of this electrical installation

Get bode plots of magnitude and phase of transfer function, Develop a PSpic...

Develop a PSpice program and use PROBE to obtain Bode plots of the magnitude and phase of the transfer function ¯V out / ¯V in for the high-pass ?lter circuit shown in Figure (a)

Explain the advantage of synchronous counters, Explain the Advantage of Syn...

Explain the Advantage of Synchronous Counters? The most significant advantage of synchronous counters is that there is no cumulative time delay because all flip-flops are trigg

Electromagnet.., force and torque in magnetic field system

force and torque in magnetic field system

State norton''s theorem, Norton's Theorem Nortons Theorem states: "A...

Norton's Theorem Nortons Theorem states: "Any linear circuit containing several energy sources and resistances can be replaced by a single Constant Current generator in para

Determine required output power, Q. Two stations (using identical antennas,...

Q. Two stations (using identical antennas, with diameters of 50λ and aperture ef?ciencies of 0.6 at 35 GHz) are separated by 30 km. With negligible antenna losses, antenna connecti

Explain pulse-code modulation, Q. Explain Pulse-Code Modulation? PCM is...

Q. Explain Pulse-Code Modulation? PCM is the simplest and oldest waveform coding scheme for processing an analog signal by sampling, quantizing, and binary encoding. Figure sho

Features of tariff policy, Features of tariff policy: For projects who...

Features of tariff policy: For projects whose tariff is determined by performance- based cost of service regulation, the advantages of decreased tariff after full depreciation

Explain temperature dependency in semiconductors, Explain temperature depen...

Explain temperature dependence of electrical resistivity and conductivity in semiconductors. The electrical conductivity of the semiconductors changes considerably with temper

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