Converts probability images from SPM
segmentation to a hard, choose-one segmentation
spm_probs_to_seg(img, ties.method = c("first", "last", "random"))
list of images for probabilities for each class
a character string specifying how ties are handled.
See max.col. Note, order of ties is different than
Object of class nifti
## Not run:
spm_seg = spm12_segment(image)
seg = spm_probs_to_seg(spm_seg)
## End(Not run)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@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.