Rotate an image about its center.
rotate_image rotates the image Image counterclockwise by Phi degrees about its center. This operator is much faster if Phi is a multiple of 90 degrees than the general operator image_transform__. For rotations by 90, 180, and 270 degrees, the region is rotated accordingly. For all other rotations the region is set to the maximum region, i.e., to the extent of the resulting image. The effect of the parameter Interpolation is the same as in image_transform__. It is ignored for rotations by 90, 180, and 270 degrees. The size of the resulting image is the same as that of the input image, with the exception of rotations by 90 and 270 degrees, where the width and height will be exchanged.
The angle Phi is giben in degrees, not in radians.
Image (input_object) |
(multichannel-)image(-array) -> object : byte |
Input image. |
ImageRotate (output_object) |
(multichannel-)image(-array) -> object : byte |
Rotated image. |
Phi (input_control) |
angle.deg -> real / integer |
Rotation angle. | |
Default value: 90 | |
Suggested values: 90, 180, 270 | |
Range of values: 0 <= Phi <= 360 | |
Minimum increment: 0.001 | |
Recommended increment: 0.2 |
Interpolation (input_control) |
integer -> integer |
Type of interpolation. | |
Default value: 1 | |
List of values: 0, 1, 2 |
read_image(:Image:'affe':) > disp_image(Image:::) > rotate_image(Image:RotImage:270:). disp_image(RotImage:::) >
image_rotate, image_transform__