Segmentation of GE data

Hi @admin,

I am having a little bug I can’t figure out with segmentation (GE data). The errors are:

Segmenting structural image from dataset 1 out of 2 total datasets…
Index exceeds array bounds.

Error in OspreySeg>createSegJob (line 238)
matlabbatch{1}.spm.spatial.preproc.tissue(2).tpm = tpm(2);

Error in OspreySeg (line 104)

Error in osp_onSeg (line 45)
MRSCont = OspreySeg(MRSCont);

Error while evaluating UIControl Callback.

Thank you!

Hi Antonia,

Would you mind sharing your job file (de-identified)?
Please note that length(files_nii) needs to be the same as length(files), i.e. if you analyze two datasets from the same subject, you need to enter the path to the NIfTI file twice.

If that doesn’t solve the problem, please shoot us an e-mail so we can take a look.

Hi Antonia,

There seems to be a problem with the SPM12 template image.

Is it possible, that you have SPM8 somewhere in the path? You should make sure to exclude it and you may want to delete the SPMpath.mat file in the Osprey/GUI folder. Next you will have to point Osprey to your SPM12 folder again.

Let me know if this helped.


1 Like

Hi Helge,

I tried that and it didn’t work. So I got rid off my output folder, SPMpath.mat file, and the whole SPM12 folder. I downloaded the SPM12 again and re-set the path to the SPM12 folder. Works great! I guess this would be equivalent to " did you try turning your computer on and off :smiley: "

Thanks for your help,

1 Like