www.gusucode.com > 《matlab图像处理与界面编程宝典》秦襄培 编著,每章的MATLAB源代码程序 > 第14章/代码14-6.txt

     
>> B = reshape(uint8(1:25),[5 5])'         % 调整矩阵形状
C = im2col(B,[1 5])                      % 调整图像块倒列     
A = col2im(C,[1 5],[5 5],'distinct')          % 重新排列成图像块