Home > vbmeg > functions > template > vb_set_basis_parm_test.m

vb_set_basis_parm_test

PURPOSE ^

Set parameters for leadfield calculation

SYNOPSIS ^

function basis_parm = vb_set_basis_parm_test(Test_ID)

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_test(Test_ID)
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 SBI     = [getenv('MATHOME') '/SBIdata-new/'];
0012 MRI_ID  = '100008d';
0013 MEG_ID  = '1001389';
0014 
0015 %
0016 % --- Standard parameters(relative path from proj_root)
0017 %
0018 
0019 basis_parm.brain_file = ['brain/' sprintf('%s%s.brain.mat', MRI_ID, Test_ID)];
0020 basis_parm.area_file  = ['brain/' sprintf('%s%s.area.mat', MRI_ID, Test_ID)];
0021 basis_parm.meg_file   = ['meg/' sprintf('%s%s.meg.mat', MEG_ID, Test_ID)];
0022 basis_parm.head_file  = [];
0023 
0024 % MEG/EEG device name
0025 basis_parm.device     = [];
0026 
0027 %
0028 % Output file(relative path from proj_root)
0029 %
0030 
0031 basis_parm.basis_file = 'test.basis.mat';
0032 
0033 
0034 global vbmeg_inst;
0035 const = vbmeg_inst.const;
0036 
0037 % BEM mode definition
0038 % const.BASIS_MEG_SPHERE    = 0; %  MEG Sphere model (Sarvas)
0039 % const.BASIS_MEG_BEM        = 1; %  MEG 1-shell BEM
0040 % const.BASIS_MEG_HARMONICS = 2; %  MEG Spherical harmonics expansion
0041 % const.BASIS_EEG_SPHERE    = 3; %  EEG 3-shell Sphere model
0042 % const.BASIS_EEG_BEM        = 4; %  EEG 3-shell BEM
0043 
0044 basis_parm.bem_mode   = const.BASIS_MEG_SPHERE;
0045 
0046 % Current degree of freedom (Basis_mode)
0047 % const.CURRENT_NORMAL  = 1;  %  normal to cortex
0048 % const.CURRENT_TANGENT = 2;  %  tangent vectors
0049 % const.CURRENT_3D        = 3;  %  x, y, z -direction
0050 
0051 basis_parm.Basis_mode = const.CURRENT_NORMAL;
0052 
0053 % Average mode for normal direction
0054 % const.NORMAL_ADJACENT_MEAN  = 0;  % 隣接点の法線平均
0055 % const.NORMAL_NEIGHBOR_MEAN  = 1;  % BV脳モデル近傍点の法線平均
0056 
0057 basis_parm.normal_mode = const.NORMAL_ADJACENT_MEAN;
0058 
0059 %
0060 % --- Advanced parameters
0061 %  Do not change, unless you understand the meaning of the parameters!!
0062 %
0063 
0064 basis_parm.area_key = [];
0065 
0066 % coordinate value of the head center.(1x3 on SPM_Right_m)
0067 basis_parm.Vcenter = [];
0068 
0069 % Order of spherical harmonics function
0070 basis_parm.func_order = 35;
0071 % Conductivity from innermost to outermost
0072 basis_parm.sigma  = [ 0.62  0.03  0.62 ];
0073 % Relative radius of sphere from innermost to outermost
0074 basis_parm.radius = [ 0.87  0.92   1.0 ];
0075 
0076 basis_parm.Recalc = OFF;

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