mean.nifti {neurobase} | R Documentation |
Mean of Values in an Image
Description
Computes the mean of values of an image with the option for a mask.
Usage
## S3 method for class 'nifti'
mean(x, ..., mask)
## S3 method for class 'anlz'
mean(x, ..., mask)
Arguments
x |
Object of class |
... |
Arguments passed to |
mask |
object to subset the image. If missing, then all values of the image are plotted. |
Value
Output of mean
Examples
img = nifti(array(rnorm(10^3), dim = rep(10, 3)))
mask = img > 0
mean(img, mask = mask)
[Package neurobase version 1.32.4 Index]