nimare.utils.vox2mm

vox2mm(ijk, affine)[source]

Convert matrix subscripts to coordinates.

Changed in version 0.0.8:

  • [ENH] This function was part of nimare.transforms in previous versions (0.0.3-0.0.7)

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 – Coordinates in image-space.

Return type:

(X, 3) numpy.ndarray