ImageRotate

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

ImageRotate[image,θ]
rotates image by θ radians.

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 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 image pixels while maximizing area
    "SameRatioCropping"crop to include only input image 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
(7.0)
| Updated in 2014
(10.0)