Home > vbmeg > functions > template > vb_set_freesurfer_file.m

vb_set_freesurfer_file

PURPOSE ^

SYNOPSIS ^

function brain_parm = vb_set_freesurfer_file(fs_dir,mode_reg,brain_parm)

DESCRIPTION ^

 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    brain_parm = vb_set_freesurfer_file(fs_dir,mode_reg,brain_parm)
0002 %
0003 % Copyright (C) 2011, ATR All Rights Reserved.
0004 % License : New BSD License(see VBMEG_LICENSE.txt)
0005 
0006 % fs_dir: Root dir for freesurfer
0007 
0008 if nargin < 2, mode_reg = 'fs'; end;
0009 if nargin < 3, brain_parm = []; end;
0010 
0011 % FreeSurfer file
0012 brain_parm.FS_left_file         = [fs_dir '/bem/lh.smoothwm.asc'];
0013 brain_parm.FS_right_file        = [fs_dir '/bem/rh.smoothwm.asc'];
0014 brain_parm.FS_left_infl_file    = [fs_dir '/bem/lh.inflated.asc'];
0015 brain_parm.FS_right_infl_file   = [fs_dir '/bem/rh.inflated.asc'];
0016 brain_parm.FS_left_curv_file    = [fs_dir '/bem/lh.curv.asc'];
0017 brain_parm.FS_right_curv_file   = [fs_dir '/bem/rh.curv.asc'];
0018 
0019 brain_parm.FS_left_label_file  = [fs_dir '/label/lh.cortex.label'];
0020 brain_parm.FS_right_label_file = [fs_dir '/label/rh.cortex.label'];
0021 
0022 switch    mode_reg
0023 case    'fs'
0024     brain_parm.FS_left_sphere_file  = [fs_dir '/bem/lh.sphere.reg.asc'];
0025     brain_parm.FS_right_sphere_file = [fs_dir '/bem/rh.sphere.reg.asc'];
0026     
0027     brain_parm.FS_sphere_key = 'sphere.reg';
0028     brain_parm.registration_mode='FS';
0029 end
0030

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