Home > functions > common > boundary > vb_get_cortex_surf_from_spm.m

vb_get_cortex_surf_from_spm

PURPOSE ^

Transform standard brain model to an individual brain

SYNOPSIS ^

function [V,F,xx] = vb_get_cortex_surf_from_spm(brainfile,snfile)

DESCRIPTION ^

 Transform standard brain model to an individual brain 
 -- Usage
 [V,F,xx] = vb_get_cortex_surf_from_std(brainfile,snfile)
  
%% --- Required Parameter
 brainfile : Brain model file (.brain.mat)
 snfile

 Masa-aki Sato 2009-9-30

 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 [V,F,xx] = vb_get_cortex_surf_from_spm(brainfile,snfile)
0002 % Transform standard brain model to an individual brain
0003 % -- Usage
0004 % [V,F,xx] = vb_get_cortex_surf_from_std(brainfile,snfile)
0005 %
0006 %%% --- Required Parameter
0007 % brainfile : Brain model file (.brain.mat)
0008 % snfile
0009 %
0010 % Masa-aki Sato 2009-9-30
0011 %
0012 % Copyright (C) 2011, ATR All Rights Reserved.
0013 % License : New BSD License(see VBMEG_LICENSE.txt)
0014 
0015 % SPM Standard brain cortex in MNI-mm coordinate (origin in MNI-space)
0016 load(brainfile,'vert','face','normal')
0017 
0018 sn = load(deblank(snfile)); 
0019 
0020 % Convert to subject SPM-right coordinate
0021 V = vb_unsn( vert', sn)'*0.001;  
0022 
0023 [V,F,xx] = vb_separate_LR_cortex(V,face);

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005