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

Calculate efficiency to load at unity power factor, Q. A 300-kVA transforme...

Q. A 300-kVA transformer has a core loss of 1.5 kW and a full-load copper loss of 4.5 kW. (a) Calculate its efficiency corresponding to 25, 50, 75, 100, and 125% loads at unity

Illustration of embedded web technology, Illustration of embedded web techn...

Illustration of embedded web technology An oven comprise an embedded processor. Owner can use a web ready mobile phone anywhere to control the oven remotely. By accessing a

Combinational logic circuit , Design a combinational logic circuit to conve...

Design a combinational logic circuit to convert XS3BCD code in to the  standard 8421 BCD code.

Define some illustrations of common control characters, Define some Illustr...

Define some Illustrations of Common Control Characters? Illustrations of common control characters include: Carriage return (ASCII code 0Dh), which positions the cu

101, make the following conversion 1000 Mx to Wb

make the following conversion 1000 Mx to Wb

Derive the equations of the self bias circuit, Q. Derive the equations of t...

Q. Derive the equations of the self bias circuit? A circuit which is used to establish a stable operating point is the self biasing configuration. The circuit is shown in Fig

Mov - move instruction, MOV ( Move ) Instruction It copies  the content...

MOV ( Move ) Instruction It copies  the contents of the sources register into destination register. The general format is . This  instruction  is used  to copy 8 bit  from s

Explain the properties and application of glass, Explain the properties and...

Explain the properties and application of glass. Glass: Ordinary glass is a fine insulator but is too brittle to be used for anything although scientific instrument parts, accu

Non inverting summing amplifier, Q. In the non inverting summing amplifier ...

Q. In the non inverting summing amplifier of Figure, let R d = 1k and M = 6. Find R f so that v =

Cycloconverter scherbius drive - motor control , Cycloconverter  Scherbius...

Cycloconverter  Scherbius Drive In this  drive  instead of dual controlled used in link  scherbius  drive one  phase  controlled  line commutated cyclconverter is used. This

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