Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


AfniIndex2AfniXYZ.m File Reference

Go to the source code of this file.


Functions

 if (m1~=1)
 fprintf (1,'\a\nError in AfniIndex2AfniXYZ:Bad size for Indx\n\n')

Variables

 function [err, XYZ]
Returns the XYZ coordinates
of an AFNI voxel with an AFNI
index of Indx 
Indx = round (Indx)
Returns the XYZ coordinates
of an AFNI voxel with an AFNI
index of Indx it s values
are rounded to the nearest
integer 
Nxx
Returns the XYZ coordinates
of an AFNI voxel with an AFNI
index of Indx it s values
are rounded to the nearest
integer 
Nyy
Returns the XYZ coordinates
of an AFNI voxel with an AFNI
index of Indx it s values
are rounded to the nearest
integer 
m1 = size(Indx)
 err = 1
 return
 NxxNyy = Nxx .* Nyy
 Z = floor (Indx ./ NxxNyy)
 Y = floor ((Indx - Z .* NxxNyy) ./ Nxx)
 X = Indx - ( Y .* Nxx) - (Z .* NxxNyy)
 XYZ = [X Y Z]

Function Documentation

fprintf ,
'\a\nError in AfniIndex2AfniXYZ:Bad size for Indx\n\n
 

if m1 = 1  ) 
 


Variable Documentation

err = 1
 

Definition at line 39 of file AfniIndex2AfniXYZ.m.

function[err, XYZ]
 

Initial value:

 AfniIndex2AfniXYZ (Indx, Nxx, Nyy)
%
%    [err, XYZ] = AfniIndex2AfniXYZ (Indx, Nxx, Nyy)

Definition at line 1 of file AfniIndex2AfniXYZ.m.

end Indx = round (Indx)
 

Definition at line 29 of file AfniIndex2AfniXYZ.m.

Returns the XYZ coordinates of an AFNI voxel with an AFNI index of Indx it s values are rounded to the nearest integer m1 = size(Indx)
 

Definition at line 21 of file AfniIndex2AfniXYZ.m.

Referenced by bandr_(), bandv_(), bisect_(), bqr_(), decode_mcu_AC_refine(), LMAP_XNAME(), LMAP_YNAME(), LMAP_ZNAME(), minfit_(), SUMA_FreeSurfer_ReadBin_eng(), tridib_(), tsturm_(), vpMatrixMult4(), and vpWindowPHIGS().

Returns the XYZ coordinates of an AFNI voxel with an AFNI index of Indx it s values are rounded to the nearest integer Nxx
 

Definition at line 9 of file AfniIndex2AfniXYZ.m.

NxxNyy = Nxx .* Nyy
 

Definition at line 31 of file AfniIndex2AfniXYZ.m.

Returns the XYZ coordinates of an AFNI voxel with an AFNI index of Indx it s values are rounded to the nearest integer Nyy
 

Definition at line 9 of file AfniIndex2AfniXYZ.m.

return
 

Definition at line 40 of file AfniIndex2AfniXYZ.m.

X = Indx - ( Y .* Nxx) - (Z .* NxxNyy)
 

Definition at line 35 of file AfniIndex2AfniXYZ.m.

XYZ = [X Y Z]
 

Definition at line 37 of file AfniIndex2AfniXYZ.m.

Referenced by SUMA_CoordChange(), SUMA_isinbox(), SUMA_process_NIML_data(), SUMA_SwitchState(), SUMA_XYZ_XYZmap(), and SUMA_XYZmap_XYZ().

Y = floor ((Indx - Z .* NxxNyy) ./ Nxx)
 

Definition at line 34 of file AfniIndex2AfniXYZ.m.

Referenced by clear_around_point(), display_coords(), radial_fill(), yuv2rgb_c_16(), yuv2rgb_c_24_bgr(), yuv2rgb_c_24_rgb(), and yuv2rgb_c_32().

Z = floor (Indx ./ NxxNyy)
 

Definition at line 33 of file AfniIndex2AfniXYZ.m.

 

Powered by Plone

This site conforms to the following standards: