Doxygen Source Code Documentation
AFNI_Index2XYZcontinuous.m File Reference
Go to the source code of this file.
Functions | |
if (nargin==3) if(~isempty(CoordCode)) | |
make sure Indx is the right size switch | size (Indx, 2) |
The equations that would change the indices to coordinate system result in a coordinate system that may be any permutation of | RAI (like IRA or AIR or IAR or RIA or ARI) so one only needs to find the%dimension permutation needed to bring the final result to RAI.%determine the ordering map to go from any permutation of RAI to RAI%[maploc(1) |
XYZmm (:, maploc(2)) | |
XYZmm (:, maploc(3)) | |
XYZmm (:, 2) | |
XYZmm (:, 3) | |
back to the original | XYZmm (:, 1) |
Now this is in the axis orientation which is Info | Orientation (:, 1)'called 3dmm in thd_coords.c[err |
if (ChangeCoord) | |
Variables | |
function [err, XYZdic] | |
the default is RAI The code can be either a string or a vector of numbers(see AFNI_CoordChange for more on that)%%Output Parameters Debug Flag | DBG = 1 |
ChangeCoord = 0 | |
end end initailize return variables | err = 1 |
XYZmm = [] | |
make sure Indx is the right size switch | case = find(B_Info.Orientation == 'I') |
make sure Indx is the right size switch change D index to XYZ | index [err, Indx] |
make sure Indx is the right size switch change D index to XYZ OK | otherwise |
The equations that would change the indices to coordinate system result in a coordinate system that may be any permutation of | jnk = find(Info.Orientation == 'R') |
Feb | |
Now this is in the axis orientation which is Info | XYZdic |
Now this is in the axis orientation which is Info | map = THD_3dmm_to_dicomm (Info, XYZmm) |
return |
Function Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Variable Documentation
|
Definition at line 739 of file SumsOfSquares.m. |
|
Definition at line 50 of file AFNI_Index2XYZcontinuous.m. |
|
Definition at line 45 of file AFNI_Index2XYZcontinuous.m. |
|
Definition at line 101 of file AFNI_Index2XYZcontinuous.m. |
|
Definition at line 90 of file AFNI_Index2XYZcontinuous.m. |
|
Initial value: AFNI_Index2XYZcontinuous (Indx, Info, CoordCode) % % [err,XYZdic] = AFNI_Index2XYZcontinuous (Indx, Info, [CoordCode]) % %Purpose: % Change from voxel XYZindex (called Voxel Coords in AFNI) to XYZ in mm % The mm and voxel coordinates refer to the values displayed % on the top left corner of AFNI controller. % CoordCode is the one you'd set from the Coord Order plugin % % %Input Parameters: % Indx an Mx3 matrix or an Mx1 vector containing the voxel indices to be % transformed to voxel coordinates. (indices start at 0) % Info is the output of BrikInfo % CoordCode is an optional parameter used to specify the coordinates system of the output % if empty or not specified Definition at line 1 of file AFNI_Index2XYZcontinuous.m. |
|
Initial value: Definition at line 62 of file AFNI_Index2XYZcontinuous.m. |
|
Definition at line 76 of file AFNI_Index2XYZcontinuous.m. Referenced by main(), SUMA_EquateSurfaceSize(), SUMA_getoffsets(), SUMA_ProjectSurfaceToSphere(), SUMA_readFScurv(), and SUMA_SureFit_Read_Topo(). |
|
|
|
|
Definition at line 102 of file AFNI_Index2XYZcontinuous.m. |
|
Definition at line 95 of file AFNI_Index2XYZcontinuous.m. |
|
|