# rotmean

0th

Percentile

##### Rotational Average of a Pixel Image

Compute the average pixel value over all rotations of the image about the origin, as a function of distance from the origin.

Keywords
spatial, math
##### Usage
rotmean(X, ..., origin, Xname, result=c("fv", "im"))
##### Arguments
X
A pixel image.
...
Ignored.
origin
Optional. Origin about which the rotations should be performed. Either a numeric vector or a character string as described in the help for shift.owin.
Xname
Optional name for X to be used in the function labels.
result
Character string specifying the kind of result required.
##### Details

This command computes, for each possible distance $r$, the average pixel value of the pixels lying at distance $r$ from the origin. Kernel smoothing is used to obtain a smooth function of $r$.

If result="fv" (the default) the result is a function object of class "fv" giving the mean pixel value of X as a function of distance from the origin.

If result="im" the result is a pixel image, with the same dimensions as X, giving the mean value of X over all pixels lying at the same distance from the origin as the current pixel.

##### Value

• An object of class "fv" or "im".

• rotmean
##### Examples
if(interactive()) {
Z <- setcov(square(1))
plot(rotmean(Z))
plot(rotmean(Z, result="im"))
} else {
Z <- setcov(square(1), dimyx=32)
f <- rotmean(Z)
}
Documentation reproduced from package spatstat, version 1.41-1, License: GPL (>= 2)

### Community examples

Looks like there are no examples yet.