spm_probs_to_seg.RdConverts probability images from SPM segmentation to a hard, choose-one segmentation
spm_probs_to_seg(img, ties.method = c("first", "last", "random"))Object of class nifti
if (FALSE) { # \dontrun{
spm_seg = spm12_segment(image)$outfiles
seg = spm_probs_to_seg(spm_seg)
} # }