Description Usage Arguments Value Author(s) Examples
Given a list containing more than one label volume, combine those volumes, creating an aggregate mask volume.
1 | volume.combineMaskVolumes(vol_list)
|
vol_list |
A list containing more than one mask volume. Note that all volumes must reflect the same sampling. |
A single aggregate MincVolumeIO volume is returned.
Jim Nikelski nikelski@bic.mni.mcgill.ca
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
library(rmincIO)
# set Civet root path and scan-identifier
scanID <- "0548-F-NC"
baseDir <- "~/tmp/ADNI/civet/pipeOut"
# read in the final tissue classify volume
labelVolname <- civet.getFilenameClassify(scanID, baseDir)
label_vol <- mincIO.readVolume(labelVolname)
# explode the classify vol into its 4 components
components <- volume.explodeLabelVolume(label_vol)
# ... remove background component -- combine the rest
xl <- list(components$gm, components$wm, components$csf)
new_mask_vol <- volume.combineMaskVolumes(xl)
# display the csf+gm+wm mask
plot(new_mask_vol)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.