Segmentation error in Osprey batch processing

Dear all,

First, many thanks for developping Osprey, it is of such great help!

I am currently processing some data from an MRS study we conducted. However, I seem to get an error, while batchprocessing using the commandline in Matlab:

Segmenting structural image from dataset 9 out of 26 total datasets…
Arrays have incompatible sizes for this operation.

Error in OspreySeg (line 318)
GM_voxmask_vol = GMvol.private.dat(:,:,:slight_smile: .* vol_mask.private.dat(:,:,:);

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

Related documentation

Strangely, this segmentation error only happend when running it via the command line. If i use the GUI it works perfectly fine. Does anyone on this forum perhaps know how to resolve this issue?

Additionally, how can I continue a job after an error? Now it continues with a new job and overwrites the existing job.

I hope someone can help!

Max