WOLFRAM
Products
Wolfram|One
Mathematica
Wolfram Notebook Assistant + LLM Kit
Wolfram|Alpha Notebook Edition
System Modeler
All Products
Consulting & Solutions
Wolfram Consulting
Industry Solutions
Solutions for Education
Learning & Support
Wolfram U Courses
Wolfram Language Resources
Wolfram Community
Support FAQs
Contact Support
Company
About Wolfram
Careers
Events
Educational Programs
All Sites and Resources
Wolfram|Alpha
Wolfram Cloud
Your Account
Your Account
User Portal
Search
Close
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how
Legacy Documentation
Digital Image Processing
(2000)
This is documentation for an obsolete product.
Current products and services
Function Index
ImageRotate
ImageRotate[
img
,
]
returns
img
rotated counterclockwise by angle
radians around its center.
ImageRotate[
img
,
,
{
r
0
,
c
0
}]
returns
img
rotated counterclockwise by angle
radians around pivot point r
0
, c
0
.
The default pivot point is (
Dimensions[
img
]
+1)/2.
The option
InterpolationOrder
determines the interpolation strategy used in calculating the pixel values in the rotated image. Nearest-neighbor (
InterpolationOrder
→
0
) or higher-order interpolants may be used.
The default setting is
InterpolationOrder
→
1
, which selects bilinear interpolation.
The option
FullImageView
determines if the returned result is of the same dimensions (default) as the original or extends it to include all the rotated pixels (
FullImageView
→
True
).
The argument
img
may be a matrix or
ImageData
expression.
See also User's Guide
4.3
.
Modified in Version 2.
Examples
This loads the package.
In[1]:=
This loads the example
beans
image.
In[2]:=
Here we compare rotation with nearest-neighbor and bilinear interpolation strategies. By default, the returned image is of the same dimensions as the original.
In[3]:=
Out[3]=
The following two results show a full view of a rotation (left) and the default view of a rotation about an alternate pivot point (right).
In[4]:=
Out[4]=