Home > functions > common > coordinate > vb_get_tal_coord.m

vb_get_tal_coord

PURPOSE ^

Transform cortex coordinate to Talairach coordinate

SYNOPSIS ^

function [XYZtal, XYZmm] = vb_get_tal_coord(index,xyzfile)

DESCRIPTION ^

  Transform cortex coordinate to Talairach coordinate
  XYZtal = get_mni_coord(index,xyzfile)
  [XYZtal, XYZmm] = vb_get_tal_coord(index,xyzfile)
 --- Input
 index   : Vertex index corresponding  'V(index,:)' in brainfile
 xyzfile : xyz-file produced by vb_script_atlas2vb.m
 --- Output
 XYZtal  : Talairach coordinate
 XYZmm   : MNI-space coordinate [mm]
  Transform cortex coordinate 'V(index,:)' in brainfile
     to Talairach coordinate & MNI-space coordinate
  Before using this, you should run vb_script_atlas2vb.m

 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 [XYZtal, XYZmm] = vb_get_tal_coord(index,xyzfile)
0002 %  Transform cortex coordinate to Talairach coordinate
0003 %  XYZtal = get_mni_coord(index,xyzfile)
0004 %  [XYZtal, XYZmm] = vb_get_tal_coord(index,xyzfile)
0005 % --- Input
0006 % index   : Vertex index corresponding  'V(index,:)' in brainfile
0007 % xyzfile : xyz-file produced by vb_script_atlas2vb.m
0008 % --- Output
0009 % XYZtal  : Talairach coordinate
0010 % XYZmm   : MNI-space coordinate [mm]
0011 %  Transform cortex coordinate 'V(index,:)' in brainfile
0012 %     to Talairach coordinate & MNI-space coordinate
0013 %  Before using this, you should run vb_script_atlas2vb.m
0014 %
0015 % Copyright (C) 2011, ATR All Rights Reserved.
0016 % License : New BSD License(see VBMEG_LICENSE.txt)
0017 
0018 load(xyzfile, 'XYZmm','XYZtal');
0019 
0020 XYZtal = XYZtal(index,:);    % Talairach coordinate
0021 XYZmm  = XYZmm(index,:);    % MNI-space coordinate

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