nimare.utils
.vox2mm¶
- vox2mm(ijk, affine)[source]¶
Convert matrix subscripts to coordinates.
- Parameters
ijk ((X, 3)
numpy.ndarray
) – Matrix subscripts for coordinates being transformed. One row for each coordinate, with three columns: i, j, and k.affine ((4, 4)
numpy.ndarray
) – Affine matrix from image.
- Returns
xyz ((X, 3)
numpy.ndarray
) – Coordinates in image-space.
Notes
From here: http://blog.chrisgorgolewski.org/2014/12/how-to-convert-between-voxel-and-mm.html