Description Usage Arguments Value Examples
Extract the dimensions of the spatial field from a Carto3D
or from a MRIaggr
object.
1 2 3 4 5 | ## S4 method for signature 'Carto3D'
selectFieldDim(object)
## S4 method for signature 'MRIaggr'
selectFieldDim(object)
|
object |
an |
A data.frame with one line and three columns named "i","j","k"
indicating the corresponding dimension.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #### 1- Carto3D method ####
## load NIFTI files and convert them to Carto3D
path.Pat1 <- system.file("nifti", package = "MRIaggr")
nifti.Pat1_TTP_t0 <- readMRI(file.path(path.Pat1, "TTP_t0"), format = "nifti")
Carto3D.Pat1_TTP_t0 <- constCarto3D(nifti.Pat1_TTP_t0, identifier = "Pat1", param = "TTP_t0")
## selection
selectFieldDim(Carto3D.Pat1_TTP_t0)
#### 2- MRIaggr method ####
## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## selection
selectFieldDim(MRIaggr.Pat1_red)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.