({{, (RefLink[Padding, paclet:ref/Padding]) 
is an option to various array and image operations that specifies what padding to use when extending beyond the original data specified.}})

OpenersNotesSection(Spacer1)Details

Typical settings for (RefLink[Padding, paclet:ref/Padding]) include:

For a 2D array, "Fixed" indicates that the rectangle of elements added at each corner should be copies of the elements at the corners of the original array.

"Reversed" indicates that the outermost layer of elements in the array should be repeated as the innermost layer of elements in the padding. "Reflected" specifies that these elements should not be repeated.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Image convolution with a Gaussian, taking pixel values outside the image to be yellow:

GaussianFilter[,10, Padding-> Yellow]

Specify a padding when resampling a list:

ArrayResample[{1,2,3},9,"Bin",Padding->0]

Use a different scheme:

ArrayResample[{1,2,3},9,"Bin",Padding->"Fixed"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ArrayPad, paclet:ref/ArrayPad])  ▪  (RefLink[ImagePad, paclet:ref/ImagePad])  ▪  (RefLink[AudioPad, paclet:ref/AudioPad])  ▪  (RefLink[PadLeft, paclet:ref/PadLeft])  ▪  (RefLink[PadRight, paclet:ref/PadRight])  ▪  (RefLink[ArrayFlatten, paclet:ref/ArrayFlatten])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Wavelet Analysis, paclet:guide/Wavelets])}})}})