Skip to content

AFNI/NIfTI Server

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

Doxygen Source Code Documentation


AfniXYZ2AfniIndex.m File Reference

Go to the source code of this file.


Functions

 if (m1~=3)
 fprintf (1,'\a\nError in AfniXYZ2AfniIndex:Bad size for XYZ\n\n')

Variables

 function [err, Indx]
it will be rounded to the
nearest integer 
Nxx
it will be rounded to the
nearest integer 
Nyy
it will be rounded to the
nearest integer 
m1 = size(XYZ)
 err = 1
 return
end XYZ = round (XYZ)
 Indx = XYZ(:,1) + Nxx.* XYZ(:,2) + Nxx .* Nyy .* XYZ(:,3)

Function Documentation

fprintf ,
'\a\nError in AfniXYZ2AfniIndex:Bad size for XYZ\n\n
 

if m1 = 3  ) 
 


Variable Documentation

err = 1
 

Definition at line 32 of file AfniXYZ2AfniIndex.m.

function[err, Indx]
 

Initial value:

 AfniXYZ2AfniIndex (XYZ, Nxx, Nyy)
%
%    [err, Indx] = AfniXYZ2AfniIndex (XYZ, Nxx, Nyy)
%  
% Returns  the AFNI index of an AFNI voxel with coordinates XYZ   
%
% XYZ : is the XYZ triplets matrix Nx3
%  If the data in XYZ is not integers

Definition at line 1 of file AfniXYZ2AfniIndex.m.

Indx = XYZ(:,1) + Nxx.* XYZ(:,2) + Nxx .* Nyy .* XYZ(:,3)
 

Definition at line 30 of file AfniXYZ2AfniIndex.m.

it will be rounded to the nearest integer m1 = size(XYZ)
 

Definition at line 20 of file AfniXYZ2AfniIndex.m.

it will be rounded to the nearest integer Nxx
 

Definition at line 1 of file AfniXYZ2AfniIndex.m.

it will be rounded to the nearest integer Nyy
 

Definition at line 1 of file AfniXYZ2AfniIndex.m.

return
 

Definition at line 33 of file AfniXYZ2AfniIndex.m.

end XYZ = round (XYZ)
 

Definition at line 28 of file AfniXYZ2AfniIndex.m.

 

Powered by Plone

This site conforms to the following standards: