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 = []; 0016 basis_parm.area_file = []; 0017 basis_parm.meg_file = []; 0018 basis_parm.head_file = []; 0019 0020 % MEG/EEG device name 0021 basis_parm.device = []; 0022 0023 % 0024 % Output file(relative path from proj_root) 0025 % 0026 0027 basis_parm.basis_file = ''; 0028 0029 global vbmeg_inst; 0030 const = vbmeg_inst.const; 0031 0032 % BEM mode definition 0033 % const.BASIS_MEG_SPHERE = 0; % MEG Sphere model (Sarvas) 0034 % const.BASIS_MEG_BEM = 1; % MEG 1-shell BEM 0035 % const.BASIS_MEG_HARMONICS = 2; % MEG Spherical harmonics expansion 0036 % const.BASIS_EEG_SPHERE = 3; % EEG 3-shell Sphere model 0037 % const.BASIS_EEG_BEM = 4; % EEG 3-shell BEM 0038 0039 basis_parm.bem_mode = const.BASIS_MEG_SPHERE; 0040 0041 % Current degree of freedom (Basis_mode) 0042 % const.CURRENT_NORMAL = 1; % normal to cortex 0043 % const.CURRENT_TANGENT = 2; % tangent vectors 0044 % const.CURRENT_3D = 3; % x, y, z -direction 0045 0046 basis_parm.Basis_mode = const.CURRENT_NORMAL; 0047 0048 % Average mode for normal direction 0049 % const.NORMAL_ADJACENT_MEAN = 0; % 隣接点の法線平均 0050 % const.NORMAL_NEIGHBOR_MEAN = 1; % BV脳モデル近傍点の法線平均 0051 0052 basis_parm.normal_mode = const.NORMAL_ADJACENT_MEAN; 0053 0054 % 0055 % --- Advanced parameters 0056 % Do not change, unless you understand the meaning of the parameters!! 0057 % 0058 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 = [ 1.0 0.0125 1.0 ]; 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;