Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


pads image on all sides with m background pixels.

pads image on all sides using the value or method specified by padding.

pads image with the specified numbers of pixels on each side.

pads a 3D image with the specified numbers of pixels.


  • The following forms of padding can be specified:
  • zan intensity value
    colora color (GrayLevel, RGBColor, etc.)
    {c1,c2,}list of channel values
    Automaticautomatic choice based on the boundary
    "Fixed"repetitions of the pixels on each boundary
    "Periodic"cyclic repetitions of the complete image
    "Reflected"reflections of the image in the boundary
    "Reversed"reversals of the complete image
    "TextureSynthesis"texture synthesis based on the complete image
    {"TextureSynthesis",mask}texture synthesis based on the specified mask
  • With {"TextureSynthesis",texturemask}, texturemask can be one of the following:
  • nuse an n-pixel-wide border for padding
    Scaled[s]use fraction s of pixel dimension on each side
    maskimagea binary mask specifying the region to use for padding
  • The padding value "Fixed" indicates that the rectangles of pixels added at each corner should be copies of the pixels at the corners of the original image.
  • "Reversed" indicates that the outermost layer of pixels in the image should be repeated as the innermost layer of pixels in the padding. "Reflected" specifies that these pixels should not be repeated.
  • ImagePad[image,] typically gives an image that has the same type as image. Padding a binary image with arbitrary intensity or color pixels typically returns an image of type "Real".
  • ImagePad[image,-m] removes m pixels from each side of image.
Introduced in 2008
| Updated in 2015