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

parcel_cortical_surface

PURPOSE ^

Parcel cortical surface

SYNOPSIS ^

function parcel_cortical_surface(p)

DESCRIPTION ^

 Parcel cortical surface
 
 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 parcel_cortical_surface(p)
0002 % Parcel cortical surface
0003 %
0004 % Copyright (C) 2011, ATR All Rights Reserved.
0005 % License : New BSD License(see VBMEG_LICENSE.txt)
0006 
0007 disp(mfilename);
0008 
0009 % Set number of parcels
0010 Nparcel = 2000;
0011 
0012 % Set brain file
0013 brain_file = fullfile(p.proj_root, p.brain_dirname, [p.struct_name, '.brain.mat']);
0014 
0015 % Read FreeSurfer information
0016 fs_dir = fullfile(p.proj_root, p.fs_dirname, p.struct_name);
0017 fs_info_file = fullfile(p.proj_root, p.dmri_dirname, p.parcels_dirname, 'fs_info', 'fs_info.mat');
0018 dmri_fs_info_read(fs_dir, fs_info_file);
0019 
0020 % Set output file
0021 parcel_file  = fullfile(p.proj_root, p.dmri_dirname, p.parcels_dirname, p.parcels_file);
0022 
0023 % Parcel cortical surface
0024 dmri_cortex_parcel(brain_file, fs_info_file, Nparcel, parcel_file);
0025

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