Remove corpus region from cortex model and make an area 'cortex_region' without corpus area vb_job_remove_corpus(proj_root,brain_parm) --- Output The following area is saved to area_file areakey = 'cortex_region' : cortex region without corpus area areakey = 'corpus_area' : corpus area M. Sato 2006-7-21 Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function vb_job_remove_corpus(proj_root,brain_parm) 0002 % Remove corpus region from cortex model 0003 % and make an area 'cortex_region' without corpus area 0004 % 0005 % vb_job_remove_corpus(proj_root,brain_parm) 0006 % --- Output 0007 % The following area is saved to area_file 0008 % areakey = 'cortex_region' : cortex region without corpus area 0009 % areakey = 'corpus_area' : corpus area 0010 % 0011 % M. Sato 2006-7-21 0012 % 0013 % Copyright (C) 2011, ATR All Rights Reserved. 0014 % License : New BSD License(see VBMEG_LICENSE.txt) 0015 0016 proj_root = vb_rm_trailing_slash(proj_root); 0017 0018 % Output file path 0019 brain_file = [proj_root '/' brain_parm.brain_file]; 0020 area_file = [proj_root '/' brain_parm.area_file ]; 0021 act_file = [proj_root '/' brain_parm.act_file ]; 0022 0023 % 0024 % ----- Default Corpus Remove Parameter 0025 % 0026 % Max distance to find large triangle in corpus callosal 0027 Para.Dmax_tri = 0.02 ; 0028 % Max radius to extend remove region 0029 Para.Rmax_remove = 0.030; 0030 % Radius for single erosion 0031 Para.Rerosion = 0.006; 0032 % Plot result 0033 Para.Plot_mode = 1; 0034 0035 [Vindx, Iremove] = vb_remove_corpus_run(brain_file,Para); 0036 0037 % 0038 % ---------- Make Area file 0039 % 0040 0041 AreaNew.key = 'cortex_region'; 0042 AreaNew.Iextract = Vindx(:); 0043 vb_add_area(area_file,AreaNew); 0044 0045 AreaNew.key = 'corpus_area'; 0046 AreaNew.Iextract = Iremove(:); 0047 vb_add_area(area_file,AreaNew); 0048 0049 %keyset = vb_get_keyset_area(area_file); 0050