spm12_segment(filename, retimg = TRUE, set_origin = TRUE, add_spm_dir = TRUE, spmdir = spm_dir(), clean = TRUE, verbose = TRUE, reorient = FALSE, ...)
run_matlab_script
acpc_reorient
on image first.
Warning, this will set the orientation differentlyretimg=TRUE
pass to readNIfTI
run_spm12_script
retimg