MATLAB的减采样2倍、减采样4倍、减采样8倍、减采样16倍
A=imread('可爱.jpg')
A1=rgb2gray(A);
A2=A1(1:2:end,1:2:end);
subplot(2,2,1),imshow(A2);
title('减采样2倍');
A3=A1(1:4:end,1:4:end);
subplot(2,2,2),imshow(A3);
title('减采样4倍')
A4=A1(1:8:end,1:8:end);
subplot(2,2,3),imshow(A4);
title('减采样8倍')
A5=A1(1:2:end,1:2:end);
subplot(2,2,4),imshow(A5);
title('减采样16倍')