Rotatem90

An image is rotated in an anticlockwise direction by 90 degrees.

 

function call:

[out_img1]=vsg('Rotatem90',in_img1);

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image.

 

Return values:

out_img1 – An image which is an anti-clockwise 90 degree rotated version of the input image, the dimensions of which have changed as follows. The output image width is the same as the input image height and the output image height is the same as the input image width.

 

Example:

img1 = openimage('lake.jpg');

h=figure;image(uint8(img1));set(h,'Name','Input image');

[out_img1]=vsg('Rotatem90',img1);

h=figure; image(uint8(out_img1));set(h,'Name', 'Rotated image');

 

Notes:

The output image values are taken directly from the input values in a matched pixel by pixel operation.
Home       Functions       Back