Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

ImageRotate

ImageRotate[image]
rotates image by 90° about its center in the - plane.

ImageRotate[image,θ]

ImageRotate[image,{θ,w}]
rotates a 3D image around the 3D vector w.

ImageRotate[image,,size]
gives an image of the specified size.

Details and OptionsDetails and Options

• ImageRotate[image,] rotates image about its center.
• For 2D images, ImageRotate[image,side] rotates image to make the top of the image be on the specified side. ImageRotate[image,side1->side2] rotates image to make side1 be on side2. Possible side specifications are: Top, Bottom, Left, Right.
• ImageRotate[image,side] is equivalent to ImageRotate[image,Top->side].
• In ImageRotate[image,side,size], possible specifications for size include:
•  width crop to width {width,height} crop to {width,height} {width,depth,height} crop a 3D image to {width,depth,height} Automatic smallest rectangle to enclose all of the rotated image All smallest square to accommodate the rotated image for any rotation angle Full use the dimensions of the input image "MaxAreaCropping" crop to include only input pixels while maximizing area "SameRatioCropping" crop to include only input pixels while preserving ratios
• The following options are supported:
•  Background 0 background color to use Masking All region of interest to be rotated Padding 0 padding of the original image Resampling Automatic resampling method
• Masking option can be one of the following:

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Rotate an image counterclockwise by 90°:

 In[1]:=
 Out[1]=

Rotate an image counterclockwise by 20°:

 In[1]:=
 Out[1]=

Rotate a 3D image in the - plane:

 In[1]:=
 Out[1]=