Learn R Programming

ANTsR (version 0.3.1)

eigSeg: Segmentation for eigenanatomy.

Description

Segment a mask into regions based on the max value in an image list. At a given voxel the segmentation label will contain the index to the image that has the largest value. If the 3rd image has the greatest value, the segmentation label will be 3 at that voxel.

Usage

eigSeg(mask = NA, imgList = NA, applySegmentationToImages = TRUE)

Arguments

mask

D-dimensional mask > 0 defining segmentation region.

imgList

list containing antsImages or filenames pointing to antsImages.

applySegmentationToImages

boolean determines if original image list is modified by the segmentation.

Value

segmentation image.

Examples

Run this code
# NOT RUN {
mylist<-list( antsImageRead( getANTsRData("r16") ),
  antsImageRead( getANTsRData("r27") ),
  antsImageRead( getANTsRData("r85") ) )
myseg<-eigSeg( getMask( mylist[[1]] ) , mylist )
# }

Run the code above in your browser using DataLab