0001 function brain_parm = vb_set_freesurfer_file(fs_dir,mode_reg,brain_parm)
0002
0003
0004
0005
0006
0007
0008 if nargin < 2, mode_reg = 'fs'; end;
0009 if nargin < 3, brain_parm = []; end;
0010
0011
0012 brain_parm.FS_left_file = [fs_dir '/bem/lh.smoothwm.asc'];
0013 brain_parm.FS_right_file = [fs_dir '/bem/rh.smoothwm.asc'];
0014 brain_parm.FS_left_infl_file = [fs_dir '/bem/lh.inflated.asc'];
0015 brain_parm.FS_right_infl_file = [fs_dir '/bem/rh.inflated.asc'];
0016 brain_parm.FS_left_curv_file = [fs_dir '/bem/lh.curv.asc'];
0017 brain_parm.FS_right_curv_file = [fs_dir '/bem/rh.curv.asc'];
0018
0019 brain_parm.FS_left_label_file = [fs_dir '/label/lh.cortex.label'];
0020 brain_parm.FS_right_label_file = [fs_dir '/label/rh.cortex.label'];
0021
0022 switch mode_reg
0023 case 'fs'
0024 brain_parm.FS_left_sphere_file = [fs_dir '/bem/lh.sphere.reg.asc'];
0025 brain_parm.FS_right_sphere_file = [fs_dir '/bem/rh.sphere.reg.asc'];
0026
0027 brain_parm.FS_sphere_key = 'sphere.reg';
0028 brain_parm.registration_mode='FS';
0029 end
0030