View source: R/minc_hierarchical_anatomy.R
addVolumesToHierarchy | R Documentation |
Takes a tree of anatomical hierarchies and adds volumes from anatGetAll
addVolumesToHierarchy(hdefs, volumes)
hdefs |
The anatomical hierarchy |
volumes |
The matrix of volumes |
Each node in the tree has two new attributes:
volumes - The matrix of volumes
meanVolume - The mean of the volumes of that node
Currently propagates volumes up the tree by summing. Future versions will add propagating through weighted means or other functions
The input anatomical hierarchy with volumes added
## Not run:
abijson <- "allen.json"
defs <- "Dorr_2008_Steadman_2013_Ullmann_2013_mapping_of_labels.csv"
hdefs <- makeMICeDefsHierachical(defs, abijson)
allvols <- anatGetAll(gf$filenames)
hanat <- addVolumesToHierarchy(hdefs, allvols)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.