Function Index
ReflectPad
ReflectPad[
img
,
{
b
,
e
}
]
pads
img
by periodically extending a reflection of
img
with b elements at the beginning and e elements at the end.
ReflectPad[
img
,
{
b
1
,
e
1
},
{
b
2
,
e
2
},
...
]
pads
img
by periodically extending a reflection of
img
with b
i
elements at the beginning and e
i
elements at the end at level
i
of
img
.
ReflecterPad
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
.
New in Version 2.
Examples
This loads the package.
In[1]:=
This pads on the tail end only with a reversed copy of list.
In[2]:=
Out[2]=
This pads the list on both ends.
In[3]:=
Out[3]=
This demonstrates padding of the rows and columns of a matrix.
In[4]:=
Out[4]//MatrixForm=
© 2009 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: