I think you need a '/' before 'raid0','homes','pmilev','spm2','apriori' etc.
Unless you are in the '/' directory, 'raid0/homes/pmilev/spm2/templates/T1.mnc'
does not exist.
Best regards,
-John
> I am just getting started with using the optimized VBM with SPM2 with the
> script kindly provided by Dr. Glaser.
>
> In the very beginning of the script I get an error message
>
>
> SPM2: spm_vol
> Error reading information on :
>
> raid0/homes/pmilev/spm2/templates/T1.mnc
> Please check that it is the correct format.
>
> Error using spm_vol (subfunc1)
> can't get volume information for
> raid0/homes/pmilev/spm2/templates/T1.mnc
>
> Error in spm_vol (subfunc2)
>
> on line 51 V = subfunc1(P)
>
> on line 37 V = subfunc2(P)
>
> Thank you very much,
> Peter Milev
>
> spm_defaults
>
> global defaults
>
> dseg = defaults.segment;
> dseg.write.wrt_cor = 0;
> dseg.estimate.weight =
> fullfile('raid0','homes','pmilev','spm2','apriori','brainmask.mnc');
>
> dnrm = defaults.normalise;
> dnrm.write.vox = [1 1 1];
> dnrm.write.bb = reshape([-90 90 -126 90 -72 108],2,3);
> dnrm.estimate.graphics = 0; % Crashes otherwise
>
> estimate = spm_input('What to do?',1,'m',...
> 'segment images and create template and prior images|use previously
> segmented images to create template and priors',[1 0], 1);
>
> VG0 =
> spm_vol(fullfile('raid0','homes','pmilev','spm2','templates','T1.mnc'));
>
> % create graphics window
> fg=spm_figure('FindWin','Graphics');
> if isempty(fg), fg=spm_figure('Create','Graphics'); end
--
Dr John Ashburner.
Functional Imaging Lab., 12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420 http://www.fil.ion.ucl.ac.uk/~john
|