nimare.utils.mm2vox

mm2vox(xyz, affine)[source]

Convert coordinates to matrix subscripts. From here: http://blog.chrisgorgolewski.org/2014/12/how-to-convert-between-voxel-and-mm.html