Aim: To perform Fourier Transform & its Inverse Fourier Transform of an image
Equipments:
Operating System: - Windows XP
Software: - Matlab 7.5, Image Processing Toolbox.
Program:
clc;
clear all;
close all;
A=zeros(30,30);
A(5:24 ,13:17 )=1;
subplot(1,2,1);imshow(A);
title('original image');
F=fft2(A);
subplot(1,2,2);imshow(F);
title('fourier transformed image');
S=abs(F)
Fc=fftshift(F);
S2=log(1+abs(Fc));
figure,subplot(1,2,1);
imshow(Fc);
title('fourier transformed image');
F=ifftshift(Fc)
f1=(ifft2(F));
subplot(1,2,2);
imshow(f1);
title('inverse transform');
Result 2 :
0 comments:
Post a Comment