Home > vbmeg > demo > sample_scripts > test_job_inflate.m

test_job_inflate

PURPOSE ^

Test job_inflate.m, a sample program of VBMEG

SYNOPSIS ^

function Vinfl = test_job_inflate(proj_root,test_parm)

DESCRIPTION ^

 Test job_inflate.m, a sample program of VBMEG

 [syntax]
 Vinfl = test_job_inflate(proj_root,test_parm)

 [input]
 proj_root: <<string>> VBMEG project root directory. 
 test_parm: <<struct>> Test condition variables. 
 --- fields of test_parm
  cortex: <<string>> 'bv' for BrainVoyager, 'fs' for FreeSurfer. 
 ---

 [output]
 Vinfl: <<matrix>> Vertex coordinates of inflated model. 
 VBMEG cortical surface model file (.brain.mat) is updated with
 variables of inflated model. 

 [history]
 2010-06-30 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 Vinfl = test_job_inflate(proj_root,test_parm)
0002 % Test job_inflate.m, a sample program of VBMEG
0003 %
0004 % [syntax]
0005 % Vinfl = test_job_inflate(proj_root,test_parm)
0006 %
0007 % [input]
0008 % proj_root: <<string>> VBMEG project root directory.
0009 % test_parm: <<struct>> Test condition variables.
0010 % --- fields of test_parm
0011 %  cortex: <<string>> 'bv' for BrainVoyager, 'fs' for FreeSurfer.
0012 % ---
0013 %
0014 % [output]
0015 % Vinfl: <<matrix>> Vertex coordinates of inflated model.
0016 % VBMEG cortical surface model file (.brain.mat) is updated with
0017 % variables of inflated model.
0018 %
0019 % [history]
0020 % 2010-06-30 Taku Yoshioka
0021 %
0022 % Copyright (C) 2011, ATR All Rights Reserved.
0023 % License : New BSD License(see VBMEG_LICENSE.txt)
0024 
0025 vb_disp('--- Start: test_job_inflate');
0026 resultdir = './vbmeg_result/';
0027 
0028 %
0029 % Standard parameters
0030 %
0031 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0032 switch test_parm.cortex, 
0033  case 'bv', 
0034   dirname = 'vbmeg_testdata/BV2000/';
0035   brain_parm.BV_left_infl_file  = [dirname 'lh_recosm_infl500.srf'];
0036   brain_parm.BV_right_infl_file = [dirname 'rh_recosm_infl500.srf'];
0037   brain_parm.brain_file         = [resultdir 'sbj_test_bv.brain.mat'];
0038   brain_parm.area_file          = [resultdir 'sbj_test_bv.area.mat'];
0039   
0040  case 'fs', 
0041   dirname = 'vbmeg_testdata/FS4.2/';
0042   brain_parm.FS_left_infl_file  = [dirname 'lh.inflated.asc'];
0043   brain_parm.FS_right_infl_file = [dirname 'rh.inflated.asc'];
0044   brain_parm.FS_left_curv_file  = [dirname 'lh.curv.asc'];
0045   brain_parm.FS_right_curv_file = [dirname 'rh.curv.asc'];
0046   brain_parm.brain_file         = [resultdir 'sbj_test_fs.brain.mat'];
0047   brain_parm.area_file          = [resultdir 'sbj_test_fs.area.mat'];
0048 end;
0049 
0050 %
0051 % Execute vb_job_inflate
0052 %
0053 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0054 vb_job_inflate(proj_root,brain_parm);
0055 Vinfl = vb_load_cortex(brain_parm.brain_file,'Inflate');
0056 vb_disp('--- End  : test_job_inflate');

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