假设你的图片叫I。方法1。for i = 1 : 256C{i} = ones(16)*i;endC = reshape(C,16,[]);C = cell2mat(C); %这个矩阵可以存下来以后调用,省时间。for i = 1 : 256block = I(C==i);block = reshape(block,16,[])figure(1);imshow(block);drawnow;end方法2,用imcrop()。写个二重循环就可以了。很简单