%实验图4.48
x = imread('D:\2.tif');
%截断频率的半径值为10
x_result_10 = GaussianLowPassFilter(x,10);
%截断频率的半径值为30
x_result_30 = GaussianLowPassFilter(x,30);
%截断频率的半径值为60
x_result_60 = GaussianLowPassFilter(x,60);
%截断频率的半径值为160
x_result_160 = GaussianLowPassFilter(x,160);
%截断频率的半径值为460
x_result_460 = GaussianLowPassFilter(x,460);
figure(1);
subplot(2,3,1);imshow(x);title('图4.48');
subplot(2,3,2);imshow(x_result_10);title('半径值为10');
subplot(2,3,3);imshow(x_result_30);title('半径值为30');
subplot(2,3,4);imshow(x_result_60);title('半径值为60');
subplot(2,3,5);imshow(x_result_160);title('半径值为160');
subplot(2,3,6);imshow(x_result_460);title('半径值为460');
%实验图4.50
x = imread('D:\3.tif');
%截断频率的半径值为100
x_result_100 = GaussianLowPassFilter(x,100);
%截断频率的半径值为80
x_result_80 = GaussianLowPassFilter(x,80);
figure(2);
subplot(1,3,1);imshow(x);title('图4.50');
subplot(1,3,2);imshow(x_result_100);title('半径值为100');
subplot(1,3,3);imshow(x_result_80);title('半径值为80');
%实验图4.51
x = imread('D:\4.tif');
%截断频率的半径值为100
x_result_50 = GaussianLowPassFilter(x,50);
%截断频率的半径值为80
x_result_20 = GaussianLowPassFilter(x,20);
figure(3);
subplot(1,3,1);imshow(x);title('图4.51');
subplot(1,3,2);imshow(x_result_50);title('半径值为50');
subplot(1,3,3);imshow(x_result_20);title('半径值为20');