plot(2, 4, 5); imshow(g2,[]); title('lowpass-btw');Рsubplot(2, 4, 6); imshow(h2,[]); title('lowpass-btw');Рsubplot(2, 4, 7); imshow(i2,[]); title('lowpass-btw');Рsubplot(2, 4, 8); imshow(j2,[]); title('lowpass-btw');Р Рfigure;%理想低通滤波器滤波后的图像Рset(figure(4),'NumberTitle','off','Name','Noise & ideal-filter') ;Рsubplot(2, 4, 1); imshow(X1,[]); title('salt & pepper noise');Рsubplot(2, 4, 2); imshow(X2,[]); title('gaussian noise');Рsubplot(2, 4, 3); imshow(X3,[]); title('poisson noise');Рsubplot(2, 4, 4); imshow(X4,[]); title('speckle noise');Рsubplot(2, 4, 5); imshow(g3,[]); title('lowpass-ideal');Рsubplot(2, 4, 6); imshow(h3,[]); title('lowpass-ideal');Рsubplot(2, 4, 7); imshow(i3,[]); title('lowpass-ideal');Рsubplot(2, 4, 8); imshow(j3,[]); title('lowpass-ideal');Р///code endР程序运行结果截图:Р///原始图像