rotatecv

Rotates the image, handle, by a given angle.

Syntax

R = rotatecv(handle, angle)

Inputs

handle
Handle of an image.
Type: integer
angle
Finite scalar specifying the angle by which the image needs to rotate by.
Type: scalar

Outputs

R
Handle of the rotated image.
Type: integer

Example

Rotate an image by 90 degrees:

handle = imreadcv('azaleas.jpg');
R = rotatecv(handle, 90);
Figure 1. Input image


Figure 2. Output image