algorithm/vol_tools.py
def vox2MNI(vox, affine):
    """
    Voxel coordinates transformed to MNI coordinates
    ------------------------------------------------
    Parameters:
        vox: voxel coordinates
        affine: affine matrix
    Return:
        mni
    """
    vox = np.append(vox, 1)
    mni = np.dot(affine, vox)
    return mni[:3]

    Voxel coordinates transformed to MNI coordinates
    ------------------------------------------------
    Parameters:
        vox: voxel coordinates
        affine: affine matrix
    Return:
        mni
    
Voxel coordinates transformed to MNI coordinates
Voxel coordinates transformed to MNI coordinates
def vox2MNI(vox, affine):
    vox = np.append(vox, 1)
    mni = np.dot(affine, vox)
    return mni[:3]
def vox2MNI ( vox , affine ) : vox = np . append ( vox , 1 ) mni = np . dot ( affine , vox ) return mni [ : 3 ]
Voxel coordinates transformed to MNI coordinates
Voxel coordinates transformed to MNI coordinates
"""
    Voxel coordinates transformed to MNI coordinates
    ------------------------------------------------
    Parameters:
        vox: voxel coordinates
        affine: affine matrix
    Return:
        mni
    """
vox
None
affine
None