Home > vbmeg > demo > tutorial_for_vbmeg2 > advanced > construct_cortical_surface_model.m

construct_cortical_surface_model

PURPOSE ^

Construct cortical surface model from T1 image using FreeSurfer

SYNOPSIS ^

function construct_cortical_surface_model(p)

DESCRIPTION ^

 Construct cortical surface model from T1 image using FreeSurfer

 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 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);

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