R/mean.nifti.R
mean.nifti.Rd
Computes the mean of values of an image with the option for a mask.
# S3 method for nifti mean(x, ..., mask) # S3 method for anlz mean(x, ..., mask)
Object of class nifti
nifti
Arguments passed to mean.default
mean.default
object to subset the image. If missing, then all values of the image are plotted.
Output of mean
mean
img = nifti(array(rnorm(10^3), dim = rep(10, 3))) mask = img > 0 mean(img, mask = mask) #> [1] 0.834495