anatCombineStructures | R Documentation |
Combines left and right labels from volumes obtained from anatGetAll call
anatCombineStructures(
vols,
method = "jacobians",
defs = getOption("RMINC_LABEL_DEFINITIONS")
)
vols |
Matrix output from call to anatGetAll |
method |
A string specifying the way information was computed at every voxel ("jacobians","labels","means","sums") |
defs |
A string pointing to the filename containing the label definitions. Used to map the integers in the atlas to a proper name for the structure and contains additional information for laterality of each structure. |
anatCombineStructures collapses left and right volume information into one measure. If "jacobians","sums",or "labels" is selected then the sum of the left and right is produced, otherwise the mean is produced.
A matrix with ncols equal to the number of collapsed labels
anatLm,anatGetAll
## Not run:
getRMINCTestData()
filenames <- read.csv("/tmp/rminctestdata/filenames.csv")
volumes <- anatGetAll(filenames=filenames$absolute_jacobian,
atlas="/tmp/rminctestdata/test_segmentation.mnc",
method="jacobians",
defs="/tmp/rminctestdata/test_defs.csv")
volumes_combined <-
anatCombineStructures(vols=volumes,
method="jacobians",
defs="/tmp/rminctestdata/test_defs.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.