%缩放变换
Ta = [4 0 0;0 3 0;0 0 1];
tform1 = maketform('affine',Ta);
figure,vistformfwd(tform1,[0 150],[0 150]);
%剪切变换
Tb = [1 0 0; .3 1 0;0 0 1];
tform2 = maketform('affine',Tb);
figure,vistformfwd(tform2,[0 150],[0 150]);
%综合缩放,旋转,剪切的放射变换
Tscale = [3 0 0;0 4 0; 0 0 1];
Trotation = [cos(pi/4) sin(pi/4) 0
-sin(pi/4) cos(pi/4) 0
0 0 1];
Tshear = [1 0 0; .3 1 0;0 0 1];
T = Tscale*Trotation*Tshear;
tform3 = maketform('affine',T);
figure,vistformfwd(tform3,[0 150],[0 150]);
映射变换(缩放、旋转、剪切)
最新推荐文章于 2022-10-01 14:52:11 发布