| padimage {spatstat} | R Documentation |
Fills the border of a pixel image with a given value or values.
padimage(X, value, n=1)
X |
Pixel image (object of class |
value |
Single value to be placed around the border of |
n |
Width of border, in pixels. |
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.
Another object of class "im", of the same type as X.
Adrian Baddeley Adrian.Baddeley@uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk
Z <- setcov(owin()) plot(padimage(Z, 1, 10))