图像转置
图像转置就是将图像像素的x坐标和y坐标互换。图像的大小会随之改变——高度和宽度将互换
foruth4-4
A=imread('pout.tif');
tform=maketform('affine',[0,1,0;1 0 0;0 1 1]);
%定义转置变换矩阵
B=imtransform(A,tform,'nearest');
subplot(1,2,1),imshow(A);
title('原图像');
subplot(1,2,2),imshow(B);
title('图像转置');