subset_4d-methods | R Documentation |
Subsets an antsImage
or nifti
object from 4D
subset_4d(img, ind, ...)
## S4 method for signature 'character'
subset_4d(img, ind, ...)
## S4 method for signature 'nifti'
subset_4d(img, ind, ...)
## S4 method for signature 'antsImage'
subset_4d(img, ind, ...)
.subset_4d(img, ind)
img |
character path of image or an object of class nifti, or antsImage |
ind |
subset indexers for the 4th dimension (usually time) |
... |
Arguments passed to |
An antsImage
or nifti
depending on
input
John Muschelli muschellij2@gmail.com
library(oro.nifti)
n = 20
x = nifti(array(rnorm(n^3*10), dim = c(n, n, n, 10)))
ind = 2:3
subset_4d(x, ind)
subset_4d(x, ind = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.