


Convert SPM-right-m to MNI-right-m & Talairach coordinate
-- Usage
[XYZmni , XYZtal, dd] = vb_convert_spm_to_mni(V,snfile)
-- Input
V : SPM-right-m coordinate [Nveretex * 3]
snfile : spatial normalization file created by SPM
The normalize transformation is contained.
-- Output
XYZmni : MNI coordinate (unit:m) [Nveretex * 3]
XYZtal : Talairach coordinate (unit:m) [Nveretex * 3]
dd : error distance between 'V' and points on the MNI coordinate
Masa-aki Sato 2010-1-15
Copyright (C) 2011, ATR All Rights Reserved.
License : New BSD License(see VBMEG_LICENSE.txt)

0001 % Convert SPM-right-m to MNI-right-m & Talairach coordinate 0002 % -- Usage 0003 % [XYZmni , XYZtal, dd] = vb_convert_spm_to_mni(V,snfile) 0004 % 0005 % -- Input 0006 % V : SPM-right-m coordinate [Nveretex * 3] 0007 % snfile : spatial normalization file created by SPM 0008 % The normalize transformation is contained. 0009 % 0010 % -- Output 0011 % XYZmni : MNI coordinate (unit:m) [Nveretex * 3] 0012 % XYZtal : Talairach coordinate (unit:m) [Nveretex * 3] 0013 % dd : error distance between 'V' and points on the MNI coordinate 0014 % 0015 % Masa-aki Sato 2010-1-15 0016 % 0017 % Copyright (C) 2011, ATR All Rights Reserved. 0018 % License : New BSD License(see VBMEG_LICENSE.txt) 0019 0020 V = [0.05, 0, 0.01];; 0021 0022 % Directory of data file 0023 root_dir = 'D:\MatData\NH_SEF\NH_brain'; 0024 0025 % snfile : spatial normalization file created by SPM 0026 snfile = [root_dir '/3D_sn.mat']; 0027 0028 [XYZmni , XYZtal, dd] = vb_convert_spm_to_mni(V,snfile); 0029