by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 3.8, Creation date: 2017-05-10, Last change: 2025-09-14
See Also: , VLwarpgrid
, imageofVLprojection
, implot
h=imwarpT(I,[T,scal,cent,fc,al,"size"])
I: | image or image size [r c] | |
T: | Transformation matrix | |
scal: | scaling factor | |
cent: | true if centered; default is false | |
fc: | frame color such as 'b-'; default is ''; | |
al: | alpha value if the image should be transparent % in SG-Lib 5.2 | |
"size": | if used, the scaling factor is the size |
h: | handle to image |
I=imread('cameraman.tif');
imwarpT(I,TofR(rot(pi/6,pi/6,pi/6)));
imwarpT(I,TofR(rot(pi/6,pi/3,pi/6)));
SGfigure; imwarpT(I,TofR(rot(pi/6,pi/6,pi/6)),[0.1 0.1],true);
SGfigure; imwarpT(I,eye(4),[0.1 0.1],true,'b-'); show
SGfigure; imwarpT(I,eye(4),[0.1 0.1],true,'b-',0); show