SPM2 related error message when doing volumesegment
    Y Chen 
    ychen at BME.UFL.EDU
       
    Tue Apr 17 18:14:40 CEST 2007
    
    
  
Sammeer,
Thanks for the kind help. After I defined the full path to T1.mnc file, it 
still crashed. Here is what I am doing:
mri = read_fcdc_mri('Subject01.mri');
cfg                 = [];
cfg.template        = 'D:\mat\toolbox\spm2\templates\T1.mnc';
cfg.name            = 'segment';
cfg.write           = 'yes';
cfg.coordinates     = 'ctf';
[segmentedmri]      = volumesegment(cfg, mri);
The error message is:
??? Error using ==> spm_vol>subfunc1
Can't get volume information 
for '/home/common/matlab/spm2/templates/T1.mnc'
Error in ==> spm_vol>subfunc2 at 51
	V = subfunc1(P);
Error in ==> spm_vol at 37
V = subfunc2(P);
Error in ==> spm_segment>get_affine_mapping at 226
if ~isempty(VG) & ischar(VG), VG = spm_vol(VG); end;
Error in ==> spm_segment>init_sp at 567
MM          = get_affine_mapping(VF,PG,flags.affreg);
Error in ==> spm_segment at 91
SP         = init_sp(flags.estimate,VF,PG);
Error in ==> volumesegment at 235
  spm_segment(Va,cfg.template,flags);
Error in ==> vol_singleshell at 8
[segmentedmri]      = volumesegment(cfg, mri);
What wrong I did? Further help is very much appreciated.
Chen
    
    
More information about the fieldtrip
mailing list