volume.combineMaskVolumes: Combine Multiple Mask Volumes into a Single Mask Volume

Description Usage Arguments Value Author(s) Examples

View source: R/volumetric.R

Description

Given a list containing more than one label volume, combine those volumes, creating an aggregate mask volume.

Usage

1

Arguments

vol_list

A list containing more than one mask volume. Note that all volumes must reflect the same sampling.

Value

A single aggregate MincVolumeIO volume is returned.

Author(s)

Jim Nikelski nikelski@bic.mni.mcgill.ca

Examples

 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)

jnikelski/rmincIO documentation built on May 19, 2019, 2:58 p.m.