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

Explain the term assembler directives, Explain the term assembler directive...

Explain the term assembler directives. An assembler directive is a statement to provide direction to the assembler to execute the task of assembly process. These assembler dire

Scr, what is finger voltage?

what is finger voltage?

Gaussian derivatives, Gaussian derivatives Generate Gaussian kernels f...

Gaussian derivatives Generate Gaussian kernels for a given scale "sigma", and display the kernel. The size of the kernel should be floor(3*sigm)+1; (i) Write an m-file "

Amper circuital lw, the plot of amper circuital law by using matlap?

the plot of amper circuital law by using matlap?

Clampers, just to put an assignment Give only short details that are impor...

just to put an assignment Give only short details that are important Specially bised clamper

Key performance indicators in business, Key Performance Indicators in Busin...

Key Performance Indicators in Business Significance of Key Performance Indicators (KPIs) in the business of power especially within a change environment due to partial deregul

Antinoise systems — noise cancellation, Q. Antinoise Systems — Noise Cancel...

Q. Antinoise Systems — Noise Cancellation? Traditionally sound-absorbing materials have been used quite effectively to reduce noise levels in aircraft, amphitheaters, and other

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