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