splitMask.Rd
split a mask into n labeled sub-masks
splitMask(mask, n = NA, voxchunk = NA)
antsImage mask
number of mask chunks (if voxchunk is not set)
number of voxels per chunk (if n is not set)
relabeledMask
Avants BB, Tustison NJ, Pustina D
mask <- getMask(antsImageRead(getANTsRData("r16"))) smask <- splitMask(mask, 10)