padimage

0th

Percentile

Pad the Border of a Pixel Image

Fills the border of a pixel image with a given value or values.

Keywords
manip, spatial
Usage
padimage(X, value, n=1)
Arguments
X
Pixel image (object of class "im").
value
Single value to be placed around the border of X.
n
Width of border, in pixels.
Details

The image X will be expanded by a margin of n pixels, with their values set to value.

The argument value should be a single value (a vector of length 1), normally a value of the same type as the pixel values of X. It may be NA. Alternatively if X is a factor-valued image, value can be one of the levels of X.

Value

  • Another object of class "im", of the same type as X.

See Also

im

Aliases
  • padimage
Examples
Z <- setcov(owin())
 plot(padimage(Z, 1, 10))
Documentation reproduced from package spatstat, version 1.41-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.