Home > bioelectromagnetism > freesurfer_meshtype.m

freesurfer_meshtype

PURPOSE ^

freesurfer_meshtype - get FreeSurfer mesh type from file name

SYNOPSIS ^

function meshtype = freesurfer_meshtype(file),

DESCRIPTION ^

 freesurfer_meshtype - get FreeSurfer mesh type from file name

 meshtype = freesurfer_meshtype(file),

 meshtype might be any of these string values:

 'orig'
 'smoothwm'
 'white'
 'pial'
 'brain' 'inner skull' - brain actually approximates the inner skull
 'scalp'

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function meshtype = freesurfer_meshtype(file),
0002 
0003 % freesurfer_meshtype - get FreeSurfer mesh type from file name
0004 %
0005 % meshtype = freesurfer_meshtype(file),
0006 %
0007 % meshtype might be any of these string values:
0008 %
0009 % 'orig'
0010 % 'smoothwm'
0011 % 'white'
0012 % 'pial'
0013 % 'brain' 'inner skull' - brain actually approximates the inner skull
0014 % 'scalp'
0015 %
0016 
0017 % $Revision: 1.1 $ $Date: 2004/11/12 01:32:34 $
0018 
0019 % Licence:  GNU GPL, no express or implied warranties
0020 % History:  02/2004 Darren.Weber_at_radiology.ucsf.edu
0021 %
0022 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0023 
0024 
0025 
0026   if findstr(file,'smoothwm'),  meshtype = 'smoothwm';
0027   elseif findstr(file,'orig'),  meshtype = 'orig';
0028   elseif findstr(file,'white'), meshtype = 'white';
0029   elseif findstr(file,'pial'),  meshtype = 'pial';
0030   elseif findstr(file,'brain'), meshtype = 'inner skull';
0031   elseif findstr(file,'scalp'), meshtype = 'scalp';
0032   elseif findstr(file,'head'),  meshtype = 'scalp';
0033   else,                         meshtype = 'unknown';
0034   end
0035   
0036 return
0037

Generated on Mon 15-Aug-2005 15:36:19 by m2html © 2003