Professional Documents
Culture Documents
clear all;
close all;
disp('loading....20..30..87..%')
A=imread('C:\Users\lenovo\Desktop\csdd\cat','png');
figure(3);
imshow(A);
abw=rgb2gray(A);
[nx,ny]=size(abw);
figure(1),subplot(2,2,1),imshow(abw);
title('grayscale image');
disp('fft');
tic;
At=fft2(abw);
F=log(abs(fftshift(At))+1);
F=mat2gray(F);
figure(4)
imshow(F,[]);
figure
Anew=imresize(abw,.1);
surf(double(Anew));
figure
Anewlow=imresize(Alow,.1);
surf(double(Anewlow));