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
UpSample
UpSample[
img
]
inserts one zero between elements at each level of
img
.
UpSample[
img
,
k
]
inserts k-1 zeros between elements at each level of
img
.
UpSample[
img
,
{
k
1
,
k
2
,
...
}]
inserts k
i
-1 zeros between elements at level
i
of
img
.
UpSample[
img
,
{
k
1
,
k
2
,
...
}
,
v
]
inserts k
i
-1 values
v
between elements at level
i
of
img
.
UpSample[
img
]
is equivalent to
UpSample[
img
,
{2
,
2
,
...
}]
.
UpSample[
img
,
k
]
is equivalent to
UpSample[
img
,
{
k
,
k
,
...
}]
.
The argument
img
may be an array of any dimensions or
ImageData
expression.
See also User's Guide
4.2
.
Example
This loads the package.
In[1]:=
This upsamples a 1D list.
In[2]:=
Out[2]=
Here is an example of upsampling a 2D array by different factors in each of its dimensions.
In[3]:=
Out[3]//MatrixForm=