ans =3×30.8660 0.5000 0 -0.5000 0.8660 0 0 0 1.0000
Apply the forward geometric transformation,tform, to the image. Display the rotated image.
J = imwarp(I,tform); imshow(J)
在vert the geometric transformation. The result is a newaffine2dobject that represents a 30 degree rotation in the counterclockwise direction.
invtform = invert(tform); invtform.T
ans =3×30.8660 -0.5000 0 0.5000 0.8660 0 0 0 1.0000
Apply the inverse geometric transformation,invtform, to the rotated imageJ. The final image,K, has the same size, shape, and orientation as the original image. Black padding around the image results from the two transformations.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.