cut.nifti | R Documentation |
Cuts a numeric image into an integer factor, with the option of a mask.
## S3 method for class 'nifti'
cut(x, breaks, ..., mask)
## S3 method for class 'anlz'
cut(x, ..., mask)
x |
Object of class |
breaks |
either a numeric vector of two or more unique cut points
or a single number (greater than or equal to 2)
giving the number of intervals into which x is to be cut.
Passed to |
... |
Arguments passed to |
mask |
object to subset the image. If missing, then all values of the image are used |
Object of class nifti
with an attribute
of levels
img = nifti(array(rnorm(10^3), dim = rep(10, 3)))
mask = img > 0
cut(img, mask = mask, breaks = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.