Closed Ede1994 closed 11 months ago
Are you sure that you want to save the results under different numbers: 99 for the segmentation and 98 for the resampled image ? Is it possible that you're not looking for the right file ?
Anyway, it seems like you've coded a wrapper around the FreeSurfer command (as opposed to the GitHub command). Have you tried calling mri_synthseg directly from the terminal ? This should work, and if it does, it means there's something wrong with your wrapper, although it looks correct to me.
You're right. It works fine in the terminal. I don't know exactly why the wrapper is causing a problem, because otherwise it works.
I've tried to use your tool and to save the resampled image. My code:
The output was the following:
But the resampled image is not saved, only the regular output (99_test.nii.gz).