Doxygen Source Code Documentation
Test_AFNI_Index2XYZcontinuous.m
Go to the documentation of this file.00001 %script Test_AFNI_Index2XYZcontinuous
00002 %
00003 %
00004 %
00005 %Purpose:
00006 %
00007 %
00008 %
00009 %Input:
00010 %
00011 %
00012 %
00013 %Output:
00014 %
00015 %
00016 %
00017 %
00018 %
00019 %Key Terms:
00020 %
00021 %More Info :
00022 %
00023 %
00024 %
00025 %
00026 % Author : Ziad Saad
00027 % Date : Tue Sep 5 21:48:26 PDT 2000
00028 % LBC/NIMH/ National Institutes of Health, Bethesda Maryland
00029
00030
00031 %Debug Flag
00032 DBG = 1;
00033
00034 %launch afni
00035 %unix('afni &');
00036
00037 %Load a Brik Info
00038 [err, Info] = BrikInfo('ARzs_CW_avvr+orig.HEAD');
00039
00040 %XYZ indices
00041 Indx = [24 36 8; 31 12 0];
00042
00043 %get coordinates in RAI
00044 [err,XYZmm] = AFNI_Index2XYZcontinuous (Indx, Info);
00045
00046 %goto these voxels in the AFNI window and check that
00047 fprintf (1,'Voxel indices :');
00048 Indx
00049 fprintf (1,'Voxel Coords [RAI]:');
00050 XYZmm
00051 fprintf (1,'Voxel Coords [ILA]:');
00052 [err, maplocation, mapsign, Mtrans] = AFNI_CoordChange ('RAI', 'ILA', XYZmm);
00053 Mtrans
00054
00055 %or directly,
00056 [err,XYZmm] = AFNI_Index2XYZcontinuous (Indx, Info, 'ILA');
00057 fprintf (1,'Voxel Coords [ILA]:');
00058 XYZmm