Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


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

rotates image by θ radians.

rotates a 3D image around the 3D vector w.

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 be on . 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:
  • widthcrop to width
    {width,height}crop to
    {width,depth,height}crop a 3D image to
    Automaticsmallest rectangle to enclose all of the rotated image
    Allsmallest square to accommodate the rotated image for any rotation angle
    Fulluse 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:
  • Background0background color to use
    MaskingAllregion of interest to be rotated
    Padding0padding of the original image
    ResamplingAutomaticresampling method
  • Masking option can be one of the following:
  • Allinput image only
    Fullinput image and padding
    maskany mask image
Introduced in 2008
| Updated in 2014