clear;clc
I1=imread('D:\matlab 闲玩\tly.jpg');
I1=rgb2gray(I1);
%I1=I1(:,:,1);
subplot(1,3,1)
imshow(I1);
title('原图1')
%22222222
FI1=fft2(I1);
FI1=fftshift(FI1);
subplot(1,3,2)
imshow(FI1)
FI2=(FI1);
PR=ifft2(FI2);
max5=max(PR);
max6=max(max5);
max6=max(max6)
scale=1/max6;
PR=PR.*scale;
FI2=PR;
subplot(1,3,3)
imshow(FI2)