Hi SPM-ers,
I'm having trouble with dicom import. After trying to figure the bug
out for a while, I'm thinking that it may be related to my switching
to the latest version of Matlab.
My operating system:
RHEL 5 C (64-bit)
Version of Matlab:
7.6.0.324
The error occurs when the first functional scan is imported and moved
to the "raw" folder.
It is not a problem with my images, they can be imported on other
installations (my laptop).
Here's the error:
??? Error using ==> mat2file
Subscripted assignment dimension mismatch (2).
Error in ==> file_array.subsasgn>subfun at 125
mat2file(sobj,dat,va{:});
Error in ==> file_array.subsasgn at 63
subfun(sobj,double(dat),args{:});
Error in ==> spm_dicom_convert>convert_mosaic at 195
dat(:,:,:) = volume;
Error in ==> spm_dicom_convert at 41
convert_mosaic(mosaic,root_dir,format);
Error in ==> spm_config_dicom>convert_dicom at 130
spm_dicom_convert(hdr,'all',root_dir,job.convopts.format);
Error in ==> spm_jobman>run_struct1 at 1587
feval(prog,val);
Error in ==> spm_jobman>run_struct1 at 1597
run_struct1(c.val{i},gui);
Error in ==> spm_jobman>run_struct1 at 1597
run_struct1(c.val{i},gui);
Error in ==> spm_jobman>run_job at 482
run_struct1(c,gui);
Error in ==> spm_jobman at 89
run_job(varargin{2});
Error in ==> preprocessDicom at 21
spm_jobman('run',jobs)
Error in ==> batchPreprocess at 66
preprocessDicom(P)
Error in ==> cioran_procedure at 102
batchPreprocess(subject)
AND
Here are the variables involved...
sobj =
fname: '/local/jdubois/fMRIdata/ra008/raw/fadolphs-0005-00001-000001-00.nii'
dim: [64 64 32 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]
dtype: 4
be: 0
offset: 352
pos: [1 1 1]
scl_slope: []
scl_inter: []
size(dat)
ans =
64 64 32
va={1:64;1:64;1:32}
mat2file is called from spm5/ main folder
file_array is called from spm5/@file_array/
I cannot try to install another version of matlab on the computational
server. However, with the previous version of matlab I ran dicom
import just fine on the computational server. I tried taking the spm5
files from the website again, all the latest updates, and ran the
Makefile in spm5/src/.
So, I'm out of options. Has anyone else had trouble with the newest matlab?
- Julien Dubois
|