Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

Upsample

Upsample[array,n]
returns an upsampled version of the array by inserting zeros between array elements.

Upsample[array,n,offset]
shifts array so that its first element moves to the position offset in the resulting array.

Upsample[array,n,offset,val]
inserts elements of value val between array elements.

Upsample[image,]
upsamples an image.

DetailsDetails

• In Upsample[array,], array can be an array of any rank.
• Upsample works with arrays of any rank and 2D and 3D images.
• Upsample[array,{n1,n2,}] inserts zeros between elements in the i dimension.
• Upsample[array,n] is equivalent to Upsample[array,n,1].
• In Upsample[array,n,offset], the offset has to be an integer between and n.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Upsample a list by a factor of 3:

 In[1]:=
 Out[1]=

Use an offset:

 In[2]:=
 Out[2]=

Specify the value to be inserted:

 In[3]:=
 Out[3]=

Upsample a 2D array:

 In[1]:=
 Out[1]//MatrixForm=

Upsample an image by a factor of 2:

 In[1]:=
 Out[1]=