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
Resize
Resize[
img
,
{
n
1
,
n
2
}]
returns an image of dimensions n
1
× n
2
by uniformly resampling
img
.
The degree of the fitting polynomial is specified by the option
InterpolationOrder
. The default setting is
InterpolationOrder
→
1
. The interpolation order may be independently selected for each of the two dimensions of an image, for example
InterpolationOrder
→{k
1
,k
2
}, where k
1
and k
2
are the rowwise and columnwise interpolation orders, respectively.
The argument
img
may be a tensor of any rank or
ImageData
expression.
See also User's Guide
4.2
.
Modified in Version 2.
Example
This loads the package.
In[1]:=
This loads an example image.
In[2]:=
Here the image is resized, without preserving the aspect ratio of the original image.
In[3]:=
Out[3]=