Hadoop Online Training by Edureka

spm_probs_to_seg: SPM Probability to Hard Segmentation

Description Usage Arguments Value Examples

Description

Converts probability images from SPM segmentation to a hard, choose-one segmentation

Usage

1
spm_probs_to_seg(img, ties.method = c("first", "last", "random"))

Arguments

img

list of images for probabilities for each class

ties.method

a character string specifying how ties are handled. See max.col. Note, order of ties is different than max.col.

Value

Object of class nifti

Examples

1
2
3
4
5
## Not run: 
spm_seg = spm12_segment(image)$outfiles
seg = spm_probs_to_seg(spm_seg)

## End(Not run)


Search within the spm12r package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.