Construct cortical surface model from T1 image using FreeSurfer Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function construct_cortical_surface_model(p) 0002 % Construct cortical surface model from T1 image using FreeSurfer 0003 % 0004 % Copyright (C) 2011, ATR All Rights Reserved. 0005 % License : New BSD License(see VBMEG_LICENSE.txt) 0006 0007 0008 disp(mfilename); 0009 0010 % Set input file 0011 T1_file = fullfile(p.proj_root, p.t1_dirname, ['m' p.struct_name '.nii']); 0012 0013 % Set output directory 0014 fs_root_dir = fullfile(p.proj_root, p.fs_dirname); 0015 if exist(fs_root_dir, 'dir') ~= 7 0016 vb_mkdir(fs_root_dir); 0017 end 0018 0019 % Apply FreeSurfer to T1 image 0020 vb_freesurfer_run(T1_file, fs_root_dir, p.struct_name);