Function Index
FixedPad
FixedPad[
img
,
{
b
,
e
}]
pads
img
by repeating the first element
b
times at the beginning and the last element
e
times at the end of
img
.
FixedPad[
img
,
{
b
1
,
e
1
},
{
b
2
,
e
2
},
...
]
pads multidimensional list
img
by replicating the first and last elements b
i
and e
i
times, respectively, at level
i
of
img
.
FixedPad
returns an array of dimensions given by
N
i
+ b
i
+ e
i
, for i=1,2,...,
ArrayDepth
[
img
]
where N
i
is the
i
th dimension of
img
.
ArrayDepth
of
img
must match the number of {b
i
, e
i
} arguments.
The argument
img
may be any list or
ImageData
expression.
See also User's Guide
4.4
.
Modified in Version 2.
Examples
This loads the package.
In[1]:=
Here a list is padded on the tail end only.
In[2]:=
Out[2]=
This pads the list on both ends.
In[3]:=
Out[3]=
This pads the rows and columns on one side only.
In[4]:=
Out[4]//MatrixForm=
© 2009 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: