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
ImageWarp
ImageWarp[
img
,
w
]
performs a general spatial (polynomial) transformation on
img
defined by matrix
w
.
The transformation matrix
w
has dimensions 2×(N+1)(N+2)/2, where
N
is the order of a polynomial mapping function (see
WarpMatrix
).
The option
InterpolationOrder
determines the interpolation strategy used in calculating the pixel values in the warped image. Nearest-neighbor or higher-order interpolants may be used.
The default setting is
InterpolationOrder
→
1
, which selects bilinear interpolation.
Using
InterpolationOrder
→
0
results in nearest-neighbor interpolation.
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 is a transformation matrix that defines a clockwise rotation of 45 degrees around a pivot point at position {0, 0} in the image plane.
In[3]:=
This applies the spatial transformation defined by matrix
rot
to image
img
.
In[4]:=
Out[4]=
Here is an example of a rubber sheet transformation.
In[5]:=
Out[5]=