0001 function vb_copy_std_brain(save_dir, Nvertex)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 [std_parm, proj_root] = vb_set_icbm152(Nvertex);
0017
0018 std_brain = [proj_root filesep std_parm.brain_file];
0019 std_area = [proj_root filesep std_parm.area_file];
0020 std_act = [proj_root filesep std_parm.act_file ];
0021
0022 std_area_aal = [proj_root filesep std_parm.area_aal];
0023 std_act_aal = [proj_root filesep std_parm.act_aal ];
0024 std_area_brd = [proj_root filesep std_parm.area_brodmann];
0025 std_act_brd = [proj_root filesep std_parm.act_brodmann ];
0026
0027 std_id = std_parm.std_id ;
0028 std_dir = std_parm.std_dir ;
0029
0030 std_image = [std_dir std_id '.img'];
0031 std_hdr = [std_dir std_id '.hdr'];
0032
0033
0034 save_image = [save_dir '/std_copy.img' ];
0035 save_hdr = [save_dir '/std_copy.hdr' ];
0036
0037
0038 save_brain_spm = [save_dir '/std_copy.brain.mat'];
0039
0040 save_act = [save_dir '/std_copy.act.mat' ];
0041 save_area = [save_dir '/std_copy.area.mat' ];
0042
0043 save_act_aal = [save_dir '/std_copy_aal.act.mat'];
0044 save_act_brd = [save_dir '/std_copy_brodmann.act.mat'];
0045 save_area_aal = [save_dir '/std_copy_aal.area.mat'];
0046 save_area_brd = [save_dir '/std_copy_brodmann.area.mat'];
0047
0048
0049 if exist(std_image ,'file'), copyfile(std_image ,save_image ); end;
0050 if exist(std_hdr ,'file'), copyfile(std_hdr ,save_hdr ); end;
0051
0052
0053 if exist(std_brain ,'file'), copyfile(std_brain ,save_brain_spm); end;
0054
0055 if exist(std_act ,'file'), copyfile(std_act ,save_act ); end;
0056 if exist(std_area ,'file'), copyfile(std_area ,save_area );end;
0057
0058 if exist(std_act_aal ,'file'), copyfile(std_act_aal ,save_act_aal); end;
0059 if exist(std_act_brd ,'file'), copyfile(std_act_brd ,save_act_brd); end;
0060 if exist(std_area_aal,'file'), copyfile(std_area_aal,save_area_aal);end;
0061 if exist(std_area_brd,'file'), copyfile(std_area_brd,save_area_brd);end;
0062
0063 return
0064
0065
0066
0067
0068