Set parameters for leadfield calculation basis_parm = vb_set_basis_parm 2006/09/20 ver 0.5 by M. Sato Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function basis_parm = vb_set_basis_parm 0002 % Set parameters for leadfield calculation 0003 % basis_parm = vb_set_basis_parm 0004 % 0005 % 2006/09/20 ver 0.5 by M. Sato 0006 % 0007 % 0008 % Copyright (C) 2011, ATR All Rights Reserved. 0009 % License : New BSD License(see VBMEG_LICENSE.txt) 0010 0011 % 0012 % --- Standard parameters(relative path from proj_root) 0013 % 0014 0015 basis_parm.brain_file = 'Subject.brain.mat'; 0016 basis_parm.meg_file = ''; 0017 basis_parm.head_file = '.head.mat'; 0018 0019 % MEG/EEG device name 0020 basis_parm.device = []; 0021 0022 % 0023 % Output file(relative path from proj_root) 0024 % 0025 0026 basis_parm.basis_file = 'leadfield.basis.mat'; 0027 0028 global vbmeg_inst; 0029 const = vbmeg_inst.const; 0030 0031 % BEM mode definition 0032 % const.BASIS_MEG_SPHERE = 0; % MEG Sphere model (Sarvas) 0033 % const.BASIS_MEG_BEM = 1; % MEG 1-shell BEM 0034 % const.BASIS_MEG_HARMONICS = 2; % MEG Spherical harmonics expansion 0035 % const.BASIS_EEG_SPHERE = 3; % EEG 3-shell Sphere model 0036 % const.BASIS_EEG_BEM = 4; % EEG 3-shell BEM 0037 0038 basis_parm.bem_mode = const.BASIS_MEG_SPHERE; 0039 0040 % Current degree of freedom (Basis_mode) 0041 % const.CURRENT_NORMAL = 1; % normal to cortex 0042 % const.CURRENT_TANGENT = 2; % tangent vectors 0043 % const.CURRENT_3D = 3; % x, y, z -direction 0044 0045 basis_parm.Basis_mode = const.CURRENT_NORMAL; 0046 0047 % Average mode for normal direction 0048 % const.NORMAL_ADJACENT_MEAN = 0; % 隣接点の法線平均 0049 % const.NORMAL_NEIGHBOR_MEAN = 1; % BV脳モデル近傍点の法線平均 0050 0051 basis_parm.normal_mode = const.NORMAL_ADJACENT_MEAN; 0052 0053 % 0054 % --- Advanced parameters 0055 % Do not change, unless you understand the meaning of the parameters!! 0056 % 0057 0058 basis_parm.area_file = ''; % Optional 0059 basis_parm.area_key = []; 0060 0061 % coordinate value of the head center.(1x3 on SPM_Right_m) 0062 basis_parm.Vcenter = []; 0063 0064 % Order of spherical harmonics function 0065 basis_parm.func_order = 35; 0066 % Conductivity from innermost to outermost 0067 basis_parm.sigma = [ 0.62 0.03 0.62 ]; 0068 % Relative radius of sphere from innermost to outermost 0069 basis_parm.radius = [ 0.87 0.92 1.0 ]; 0070 0071 basis_parm.Recalc = OFF;