Segmentation Error in Osprey

Hello,

I am working through the Osprey tutorial, but I encountered the following error during the segmentation process:

Copy code

Error using movefile
No matching files named
'/Users/tylee/Documents/osprey/exampledata/twix/sub-01/ses-01/anat/sub-01/c1ses-01_T1w.nii.gz'
were found.

Error in OspreySeg (line 182)
                    movefile(fullfile(T1dir, ['c1' T1name '.nii.gz']),fullfile(saveDestinationFilesSPM,['c1_' PreFix T1name '_space-scanner_spm12_pseg.nii.gz']));
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in osp_onSeg (line 47)
    MRSCont = OspreySeg(MRSCont);
              ^^^^^^^^^^^^^^^^^^
 
Error while evaluating UIControl Callback.

When I checked the directory, I found that the file c1ses-01_T1w.nii.gz is missing, and only the file ses-01_T1w.nii.gz exists.

Could you please let me know how to resolve this issue?

Hi @ICH,

The fact that no file starting with c1 exists suggests that the segmentation never completed. You have SPM12 installed, right?