Print

Print


Keith,
I've been getting the same error messages re/ my template images during coregistration.  I've tentatively decided that this is likely to be the result of my version of Matlab (in my case, Matlab 6.0 release 12) being run on a marginally-compatible version of Linux (Linux 6.2, using kernel 2.2.14-5.0).  I'll be testing out this hypothesis over the weekend by upgrading my version of Linux.  Somewhat similar problems were previously reported for Matlab 5.3 being run on Linux 6.

Of course, I could be way off base, in which case I will be interested in finding out what your solution is.  But since you did not specify in your message, what platform are you running SPM on, and with what version of Matlab?

Doug Burman
Northwestern University

In a message dated Fri, 23 Mar 2001  2:19:35 PM Eastern Standard Time, "Harenski, Keith" <[log in to unmask]> writes:

<< <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">          spm dbm.m query
Hello SPM'ers (that seems to be the salutation of choice lately) -
I am attempting to run a DBM analysis on some of our data but i am getting the following error after selecting the *.sn3d.mat files:
 * - SPM99: spm vol ------------------------------------------------
 Error reading information on:
 apriori/brainmask.img

 Please check that it is in the correct format.
 ----------------------------------------- 14:07:55 - 23/03/2001
??? Error using ==> spm vol (subfunc1)
Can't get volume information for 'apriori/brainmask.img'
Error in ==> /usr/local/matlab5/toolbox/matlab/spm99/spm vol.m (subfunc2)
On line 48 ==> V = subfunc1(P);
Error in ==> /usr/local/matlab5/toolbox/matlab/spm99/spm vol.m
On line 34 ==> V = subfunc2(P);
Error in ==> /usr/local/matlab5/toolbox/matlab/spm99/spm dbm.m (procrustes)
On line 272 ==> V = spm vol(fullfile(SWD,'apriori','brainmask.img
Error in ==> /usr/local/matlab5/toolbox/matlab/spm99/spm dbm.m (xtract shapes)
On line 64 ==> T = procrustes(matfiles(j,:));
Error in ==> /usr/local/matlab5/toolbox/matlab/spm99/spm dbm.m
On line 39 ==> xtract shapes;

When i run spm.vol.m on the brainmask.hdr (or .img) it prints out the following information from the image:
ans =
 fname: '/usr/local/matlab5/toolbox/matlab/spm99/apriori/brainmask.img'
 dim: [91 109 91 2]
 mat: [4x4 double]
 pinfo: [3x1 double]
 descrip: 'Brain Mask'
I cant help but feel like i am missing something really simple here, but if this isnt the information that spm vol.m is looking for, then what is?
thanks in advance...
Keith           >>