0001 function [brain_parm] = vb_set_brain_parm_test(fs_dir)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 if ~exist('fs_dir', 'var')
0026 fs_dir = '';
0027 end
0028
0029 surf_dir = fullfile(fs_dir, 'surf');
0030 label_dir = fullfile(fs_dir, 'label');
0031
0032
0033
0034 brain_parm.FS_left_file = fullfile(surf_dir, 'lh.smoothwm.asc');
0035 brain_parm.FS_right_file = fullfile(surf_dir, 'rh.smoothwm.asc');
0036 brain_parm.FS_left_infl_file = fullfile(surf_dir, 'lh.inflated.asc');
0037 brain_parm.FS_right_infl_file = fullfile(surf_dir, 'rh.inflated.asc');
0038 brain_parm.FS_left_curv_file = fullfile(surf_dir, 'lh.curv.asc');
0039 brain_parm.FS_right_curv_file = fullfile(surf_dir, 'rh.curv.asc');
0040 brain_parm.FS_left_sphere_file = fullfile(surf_dir, 'lh.sphere.reg.asc');
0041 brain_parm.FS_right_sphere_file = fullfile(surf_dir, 'rh.sphere.reg.asc');
0042 brain_parm.FS_sphere_key = 'sphere.reg';
0043
0044 brain_parm.FS_left_label_file = fullfile(label_dir, 'lh.cortex.label');
0045 brain_parm.FS_right_label_file = fullfile(label_dir, 'rh.cortex.label');
0046
0047
0048
0049 brain_parm.registration_mode='FS';
0050
0051
0052 brain_parm.analyze_file = '3D.nii';
0053
0054
0055
0056
0057 brain_parm.brain_file = 'Subject.brain.mat';
0058 brain_parm.area_file = 'Subject.area.mat';
0059 brain_parm.act_file = 'Subject.act.mat';
0060
0061
0062
0063
0064
0065
0066
0067
0068 brain_parm.R_max = 0.018;
0069
0070
0071 brain_parm.Nvertex = 10000;
0072
0073
0074 brain_parm.reduce_ratio = 0.1;
0075
0076
0077 brain_parm.N_step = 50;
0078
0079
0080 brain_parm.display = 200;