Home > functions > template > vb_set_head_parm_eeg_test.m

vb_set_head_parm_eeg_test

PURPOSE ^

Set parameters for head model

SYNOPSIS ^

function head_parm = vb_set_head_parm_eeg_test

DESCRIPTION ^

 Set parameters for head model
   head_parm = set_head_parm_test
     Absolute path
  head_parm.brain_mask = 
  head_parm.analyze_file = 
  head_parm.subj_mask    = 
  head_parm.face_file    = 
  head_parm.snfile       = 
  head_parm.brain_file   = 
    Relative path from proj_root
  head_parm.curry_file = 
  head_parm.head_file = 
  

 2008-10-06 Masa-aki 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    head_parm = vb_set_head_parm_eeg_test
0002 % Set parameters for head model
0003 %   head_parm = set_head_parm_test
0004 %     Absolute path
0005 %  head_parm.brain_mask =
0006 %  head_parm.analyze_file =
0007 %  head_parm.subj_mask    =
0008 %  head_parm.face_file    =
0009 %  head_parm.snfile       =
0010 %  head_parm.brain_file   =
0011 %    Relative path from proj_root
0012 %  head_parm.curry_file =
0013 %  head_parm.head_file =
0014 %
0015 %
0016 % 2008-10-06 Masa-aki Sato
0017 %
0018 %
0019 % Copyright (C) 2011, ATR All Rights Reserved.
0020 % License : New BSD License(see VBMEG_LICENSE.txt)
0021 
0022 % root data dir for subject (working variable)
0023 user_root = getenv('MATHOME');
0024 HEAD = [user_root '/EEG-NIRS_20080423/Curry/'];
0025 MRI  = [user_root '/EEG-NIRS_20080423/MRI/'];
0026 Subj = [user_root '/EEG-NIRS_20080423/subject/'];
0027 
0028 % --- Input MRI image file (Analyze or Nifty)
0029 %     Absolute path
0030 head_parm.analyze_file = [MRI '3D_T1.hdr' ]; 
0031 head_parm.face_file    = [MRI 'ST.face.mat'];
0032 head_parm.brain_file   = [Subj 'SKbrain.brain.mat'];
0033 
0034 % --- Input Head surface file made by Curry (TEXT-file)
0035 %     Absolute path
0036 head_parm.curry_file = [HEAD 'TS_T1.s00']; % inner skull (CSF)
0037 
0038 % --- Output Head surface file (MAT-file)
0039 %     Relative path from proj_root
0040 
0041 % MEG : 1-shell model (1 file)
0042 % head_parm.head_file = 'SKhead.head.mat';
0043 
0044 % EEG : 3-shell model (3 file in cell array)
0045 head_parm.head_file = {...
0046      'SK_csf.head.mat';
0047      'SK_skull.head.mat';
0048      'SK_scalp.head.mat';
0049 };
0050 
0051 % Vertex number of one smoothed head surface
0052 % The same number is assumed for 3-shell surface
0053 head_parm.Nvertex = 2000; 
0054 
0055 %
0056 % --- Advanced parameters
0057 %  Do not change, unless you understand the meaning of the parameters!!
0058 %
0059 
0060 % Morphological radius for Curry surface smoothing ( = [ 4 -4 ])
0061 head_parm.Radius  = [ 4 -4 ]; % 4 mm dilation & 4mm erosion
0062 
0063 % EEG : 3-shell model case (Optional)
0064 % Morphological  radius for Skull & Scalp
0065 head_parm.Scalp  = [ 8 ]; % Max width of skin  [mm]
0066 %head_parm.Skull  = [ 6 ]; % Min width of skull [mm]
0067 
0068 head_parm.Nloop = 200; %  : Iteration number of expand to boundary ( = 200)
0069 head_parm.Nlast = 5;  %  : Iteration number of surface smoothing   ( = 5 )
0070 
0071 % --- spring surface model
0072 head_parm.tangent_rate   = 0.3; % Rate of smoothing force ( = 0.3)
0073 head_parm.mask_ratio     = 0.5; % Rate of mask force ( = 0.5)
0074 head_parm.mask_threshold = 0.3; % threshold for in/out boundary
0075 
0076 head_parm.vstep     = 2  ; % Subsampling step for mask image [mm]
0077 
0078

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005