Home > vbmeg > demo > test_scripts > vb_test_gave2.m

vb_test_gave2

PURPOSE ^

Make cortical surface models for subjects 0001-0004.

SYNOPSIS ^

function vb_test_gave2

DESCRIPTION ^

 Make cortical surface models for subjects 0001-0004.

 [syntax]
 vb_test_gave2

 [input]

 [output]

 [history]
 2010-12-03 Taku Yoshioka

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function vb_test_gave2
0002 % Make cortical surface models for subjects 0001-0004.
0003 %
0004 % [syntax]
0005 % vb_test_gave2
0006 %
0007 % [input]
0008 %
0009 % [output]
0010 %
0011 % [history]
0012 % 2010-12-03 Taku Yoshioka
0013 %
0014 % Copyright (C) 2011, ATR All Rights Reserved.
0015 % License : New BSD License(see VBMEG_LICENSE.txt)
0016 
0017 sbj_dir   = '/home/cbi-data5/taku-y/public/vbmeg0.90_coreg/subjects/';
0018 sbj_id    = {'0001','0002','0003','0004'};
0019 
0020 % Common parameters
0021 brain_parm = vb_set_brain_parm;
0022 
0023 for i=1:length(sbj_id)
0024   % Import cortical surface model
0025   proj_root = ['./subjects/' sbj_id{i} '/'];
0026   brain_parm.analyze_file ...
0027       = [sbj_dir sbj_id{i} '/brain/3D.hdr'];
0028   brain_parm.FS_left_file ...
0029       = [sbj_dir sbj_id{i} '/brain/lh.smoothwm.asc'];
0030   brain_parm.FS_right_file ...
0031       = [sbj_dir sbj_id{i} '/brain/rh.smoothwm.asc'];
0032   brain_parm.FS_left_infl_file ...
0033       = [sbj_dir sbj_id{i} '/brain/lh.inflated.asc'];
0034   brain_parm.FS_right_infl_file ...
0035       = [sbj_dir sbj_id{i} '/brain/rh.inflated.asc'];
0036   brain_parm.FS_left_curv_file ...
0037       = [sbj_dir sbj_id{i} '/brain/lh.curv.asc'];
0038   brain_parm.FS_right_curv_file ...
0039       = [sbj_dir sbj_id{i} '/brain/rh.curv.asc'];
0040   brain_parm.analyze_file ...
0041       = [sbj_dir sbj_id{i} '/brain/3D.hdr'];
0042   brain_parm.brain_sphL ...
0043       = [sbj_dir sbj_id{i} '/brain/lh.sphere.reg.asc'];
0044   brain_parm.brain_sphR ...
0045       = [sbj_dir sbj_id{i} '/brain/rh.sphere.reg.asc'];
0046   brain_parm.key ...
0047       = 'sphere.reg';
0048   
0049   brain_parm.brain_file ...
0050       = ['./subjects/' sbj_id{i} '/brain/' sbj_id{i} '.brain.mat'];
0051   brain_parm.area_file ...
0052       = ['./subjects/' sbj_id{i} '/brain/' sbj_id{i} '.area.mat'];
0053   brain_parm.act_file ...
0054       = ['./subjects/' sbj_id{i} '/brain/' sbj_id{i} '.act.mat'];
0055   
0056   vb_job_brain(proj_root,brain_parm);
0057   vb_job_inflate(proj_root,brain_parm);
0058   vb_job_brain_add_sphcoord(proj_root,brain_parm);
0059   
0060   % Calculate projection matrix
0061   coreg_parm.source_file = brain_parm.brain_file;
0062   coreg_parm.source_key  = 'sphere.reg';
0063   coreg_parm.target_file = [sbj_dir 'fsaverage/brain/' ...
0064                       'fsaverage.brain.mat'];
0065   coreg_parm.target_key  = 'sphere.reg';
0066   coreg_parm.key         = 'fsaverage.sphere.reg';
0067   
0068   vb_job_coreg_brain(proj_root,coreg_parm);
0069 end;
0070 
0071 return;

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005