Thanks for pointing this one out. The problem appears to be in line 43
of spm_box.c, where it defines a string having 127 characters at most:
char label[128];
You can fix the problem by changing the 128 to something bigger and
re-mexing the file:
cmex spm_box.c
This will not be an issue in SPM99, since the spm_box routine will no
longer be used.
Bye for now,
-John
>
> Hi,
>
> We have a group of images that apparently have the correct headers such
> that I can run the smooth operation on them and do things like read in
> for displaying, however, when I run the realign command I get the
> following errors:
>
> ------------------------
>
> ??? Cant open input file.
>
> Error in ==> /export/home/matlab_4.2/toolbox/local/spm/spm_box.mexsol
> Error in ==> /export/home/matlab_4.2/toolbox/local/spm/spm_bb.m
> On line 24 ==> [x y z] = spm_box(P(P ~= ' '),DIM,TYPE);
>
> Error in ==> /export/home/matlab_4.2/toolbox/local/spm/spm_realign.m
> On line 346 ==> bb = spm_bb(P(1,:)); % bb = bounding
> box
>
> Error in ==> /export/home/matlab_4.2/toolbox/local/spm/spm_realign.m
> On line 273 ==> spm_realign(P,Flags);
>
> ??? Error while evaluating callback string.
>
> ----------------------
>
> I am able to run the spm demo data set through the realignment and some
> others as well.
> Any and all help would be appreciated.
>
> Thanks,
>
> Robert Welsh
>
> --
> Robert C. Welsh, PhD
> Department of Radiology
> University of Michigan
> [log in to unmask]
>
>
>
> From [log in to unmask] Mon Apr 19 22:04:05 1999
> Original-Sender: [log in to unmask]
> Date: Mon, 19 Apr 1999 17:04:27 -0400
> X-Accept-Language: en
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: re: can't realign, but can smooth
> From: "Robert C. Welsh" <[log in to unmask]>
> To: [log in to unmask]
> X-List: [log in to unmask]
> X-Unsub: To leave, send text 'leave spm' to [log in to unmask]
> X-List-Unsubscribe: <mailto:[log in to unmask]>
> Content-Transfer-Encoding: 7bit
>
> for SPM authors:
>
> Apparently SPM/MatLab 4.x can't handle long directory names for reading
> data files in under the REALIGNMENT command. If you have not caught this
> for SPM99, can you try to get the fix in?
>
> I am able to read these files once I change the length of the overall
> (in characters) directory path. I am guessing that it breaks somewhere
> around 100 characters for the directory path.
> --
> Robert C. Welsh, PhD
> Department of Radiology
> University of Michigan
> [log in to unmask]
>
>
>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|