After loading my BRIK file in to matlab, I located some ROI i.e. some indexes that are relevant to my needs, and I try to open those locations in AFNY.
For that I used the function AFNI_Index2XYZcontinuous. the function gets the ( indexes -1) since matlab starts from 1 and not 0 but still, I do not get in AFNI the right location.
When trying to locate the origin (i.e. [err,XYZdic] = AFNI_Index2XYZcontinuous ([0 0 0], InfoV, 'RAI'); I get XYZdic = [-90 120 -20] which is [y,z,x] and not [z,y,x] as it sould be according to the Info.LABEL .
How can I get the true locations for AFNI and in which coordinate system I should use for that?
I do know the dim of my data so I know that z,y,x is the right order (as I can see in Info.LABEL), but I dont know the directions of each axes and how to locate in AFNI the true relevant voxel.
Thanks
Inbal