Translates a voxel index into the continuous coordinate space defined by the NIfTI qform and sform information.
An index vector in
An object of class
Provide detailed output to the user.
This function takes as input a
nifti object and an index
vector in the voxel space of the object and translates that voxel index
into the continuous coordinate space defined by the object's qform and
By default the index
i varies most rapidly, etc.
The ANALYZE 7.5 coordinate system is
(A left-handed co-ordinate system).
The three methods below give the locations of the voxel centres in the x,y,z system. In many cases programs will want to display the data on other grids. In which case the program will be required to convert the desired (x,y,z) values in to voxel values using the inverse transformation.
Method 2 uses a factor
qfac which is either -1 or 1.
qfac is stored in
pixdim != 1 or
-1, which should not occur, we assume 1.
The units of the
xyzt are set in
nifti-class object with translated coordinates.
Andrew Thornton [email protected]
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.