Hi Michael,
My guess is that you haven't set the name of the matfile containing the
image parameter set variable in the mfile:
> 'matname', {{''}}, ...
which should be the name of a mat file called '401_1_sn3d.mat' . This will
be created/located in the same directory as '401_1.img' in your example.
Hope this helps.
-Bill
At 15:10 14/11/02 +0100, Michel HOEN wrote:
> Hi dear SPMers,
>
> I'm running SPM99 under windows2000.
> I've been using the batch mode to perform statistical analysis, models and
>constrasts estimation and encountered no major problem.
> At least none of them couldn't be solved using on-line documentation...
>
> But this time, writing scripts to do pre-processing of the Normalization
>procedure, I'm really stucked ...
>
> I'm just trying to run a normalization of an anatomical scans to a T1
>template,
>
>
> When running the script I always get that (nice by the way) Error Message :
>
> 14:54:26 - 14/11/2002
> ========================================================================
>
> ??? What do I do with this?
>
>> D:\Matlab\spm99\spm_global.dll
>> D:\Matlab\spm99\spm_sn3d.m
> > gl = spm_global(VG(i));
>
>> D:\Matlab\spm99\spm_sn3d.m
> > spm_sn3d(subj(i).P,subj(i).matname,bb,Vox,...
>
>> D:\Matlab\spm99\spm_bch.m
> > spm_sn3d;
>
>
> The m-file alone runs under matlab whithout any error.
> The script runs under spm_bch and creates an spm_sn3d.tmp file (header and
>img) and then crashes and gives the error message.
>
> Has anyone already encountered it or would know why it appears ??
> I've tried several manipulations of commas and brackets but just couldn't
>come out of it !!!
>
> Any help appreciated !!!
>
>
> The m-file (part) I've use looks like that :
>
>
> anats1=spm_get('files', 'D:/matlab/spm99/data/S01/AnatS1', '401_1.img');
> t1template=spm_get('files', 'D:/matlab/spm99/templates', 'T1.img');
>
> %---------------------------------------------------------------
> % batch variables defined here for analysis 'normalize'
> %---------------------------------------------------------------
>
> normalize(1) = struct( ...
> 'option', 3, ...
> 'nbsubjects', [1], ...
> 'object_masking', 0, ...
> 'image', {{anats1}}, ...
> 'matname', {{''}}, ...
> 'objmask', {{''}}, ...
> 'images', {{anats1}}, ...
> 'template', {{t1template}}, ...
> 'type', 0, ...
> 'nonlin_func_nb', 0, ...
> 'func_nb', 0, ...
> 'nonlin_ite_nb', 12, ...
> 'nonlin_regular', 0.01, ...
> 'mask_brain', 0, ...
> 'interp', -9, ...
> 'bounding_box', 3, ...
> 'direction1', [-10;10], ...
> 'direction2', [-10;10], ...
> 'direction3', [-10;10], ...
> 'voxel_sizes', 0, ...
> 'voxel_sizes_custom', [2 2 2]...
> );
>
> Many thanks in advance !!
> Sincerelly,
>
>
> Michel Hoen.
>
> Institut des Sciences Cognitives
>""
> UMR 5015 CNRS-UCBL
> 67, Bd Pinel
> 69675 Bron Cedex
> Tél : 04 37 91 12 65
>
>
|