Home > vbmeg > functions > template > vb_set_basis_parm_eeg_test.m

vb_set_basis_parm_eeg_test

PURPOSE ^

Set parameters for leadfield calculation

SYNOPSIS ^

function basis_parm = vb_set_basis_parm_eeg_test(mode)

DESCRIPTION ^

 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)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function basis_parm = vb_set_basis_parm_eeg_test(mode)
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 brain_id = 'SK';
0015 data_id  = 'SK_low_epoch';
0016 
0017 basis_parm.brain_file = [brain_id 'brain' '.brain.mat' ];
0018 basis_parm.area_file  = [brain_id 'brain' '.area.mat'  ];
0019 
0020 basis_parm.meg_file   = ['eeg/' data_id '.info.mat'];
0021 
0022 % Head files for EEG 3-shell model
0023 basis_parm.head_file  = ...
0024     {'SK_csf_2000.head.mat';
0025      'SK_skull_2000.head.mat';
0026      'SK_scalp_2000.head.mat'};
0027 
0028 %
0029 % --- Output file(relative path from proj_root)
0030 %
0031 if exist('mode','var') && mode==0
0032     basis_parm.basis_file = [brain_id '_' data_id '_sph' '.basis.mat'];
0033 else
0034     basis_parm.basis_file = [brain_id '_' data_id '.basis.mat'];
0035 end
0036 
0037 global vbmeg_inst;
0038 const = vbmeg_inst.const;
0039 
0040 % MEG/EEG device name
0041 basis_parm.device = 'BIOSEMI';
0042 
0043 % BEM mode definition
0044 % const.BASIS_MEG_SPHERE    = 0; %  MEG Sphere model (Sarvas)
0045 % const.BASIS_MEG_BEM        = 1; %  MEG 1-shell BEM
0046 % const.BASIS_MEG_HARMONICS = 2; %  MEG Spherical harmonics expansion
0047 % const.BASIS_EEG_SPHERE    = 3; %  EEG 3-shell Sphere model
0048 % const.BASIS_EEG_BEM        = 4; %  EEG 3-shell BEM
0049 
0050 if exist('mode','var') && mode==0
0051     basis_parm.bem_mode   = const.BASIS_EEG_SPHERE;
0052 else
0053     basis_parm.bem_mode   = const.BASIS_EEG_BEM;
0054 end
0055 
0056 % Current degree of freedom (Basis_mode)
0057 % const.CURRENT_NORMAL  = 1;  %  normal to cortex
0058 % const.CURRENT_TANGENT = 2;  %  tangent vectors
0059 % const.CURRENT_3D        = 3;  %  x, y, z -direction
0060 
0061 basis_parm.Basis_mode = const.CURRENT_NORMAL;
0062 
0063 % Average mode for normal direction
0064 % const.NORMAL_ADJACENT_MEAN  = 0;  % 隣接点の法線平均
0065 % const.NORMAL_NEIGHBOR_MEAN  = 1;  % BV脳モデル近傍点の法線平均
0066 
0067 basis_parm.normal_mode = const.NORMAL_ADJACENT_MEAN;
0068 %basis_parm.normal_mode = const.NORMAL_NEIGHBOR_MEAN;
0069 
0070 %
0071 % --- Advanced parameters
0072 %  Do not change, unless you understand the meaning of the parameters!!
0073 %
0074 
0075 basis_parm.area_key = [];
0076 
0077 % coordinate value of the head center.(1x3 on SPM_Right_m)
0078 basis_parm.Vcenter = [];
0079 
0080 % Order of spherical harmonics function
0081 basis_parm.func_order = 35;
0082 % Conductivity from innermost to outermost
0083 basis_parm.sigma  = [ 0.62  0.03  0.62 ];
0084 % Relative radius of sphere from innermost to outermost
0085 basis_parm.radius = [ 0.87  0.92   1.0 ];
0086 
0087 basis_parm.Recalc = OFF;

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