Arbitrary rotation and scaling of a gray-scale image using fast bilinear interpolation.
The image im0 will be rotated and scaled such that the landmark points in lm0 in the image will be placed in the landmark points in lm1 in the output image im1. The landmark points are given as a 2 by 2 matrix where the first row contains the x-coordinates of the landmarks, and the second row contains the y-coordinates.
The size of the output image is given in the vector out_size.
The following example shows basic usage of the function
im0 = zeros(100); im0(25:75, 25:75)=1; im1 = rotate_scale( im0, [40,60; 50,50], [60,90; 60,90], [120,120]);
See also: imrotate, imresize.
Package: image