Function Index
DownSample
DownSample[
img
]
returns every other element at each level of
img
.
DownSample[
img
,
k
]
returns every
k
th element at each level of
img
.
DownSample[
img
,
{
k
1
,
k
2
,
...
}]
returns every k
i
th element at level
i
of
img
.
DownSample[
img
]
is equivalent to
DownSample[
img
,
{
2
,
2
,
...
}]
.
DownSample[
img
,
k
]
is equivalent to
DownSample[
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 downsamples a 1D list.
In[2]:=
Out[2]=
Here is an example of downsampling a 2D array by different factors in each of its dimensions.
In[3]:=
Out[3]//MatrixForm=
© 2008 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: