An image is rotated in a clockwise direction by a user specified amount.
function call:
[out_img1]=vsg('RotateImg',in_img1,angle);
Arguments:
in_img1
input image, 3 channel RGB, 1 channel greyscale or binary image, or
DICOM image.
angle
– double, angle in degrees
by which the image should be rotated. Positive values rotate the image
in an anticlockwise direction as is the convention.
Description:
out_img1 – An image of the
same size as the input image. The output image is a rotated version of
the input image.
Example:
img1 = openimage('lake.jpg');
h=figure;image(uint8(img1));set(h,'Name','Input image');
[out_img1]=vsg('RotateImg',img1,30);
h=figure; image(uint8(out_img1));set(h,'Name', 'Rotated
image');
Notes: