def METHOD_NAME(m_img):
    # coil position cp : the center point at the bottom of the coil casing,
    # corresponds to the origin of the coil template.
    # coil normal cn: outer normal of the coil, i.e. away from the head
    # coil tangent 1 ct1: long axis
    # coil tangent 2 ct2: short axis ~ direction of primary E under the coil
    # % rotation matrix for the coil coordinates
    # T = [ct1;ct2;cn];
    m_img_flip = m_img.copy()
    m_img_flip[1, -1] = -m_img_flip[1, -1]
    cp = m_img_flip[:-1, -1]  # coil center
    cp = cp * 0.001  # convert to meters
    cp = cp.tolist()
    ct1 = m_img_flip[:3, 1]  # is from posterior to anterior direction of the coil
    ct2 = m_img_flip[:3, 0]  # is from left to right direction of the coil
    coil_dir = m_img_flip[:-1, 0]
    coil_face = m_img_flip[:-1, 1]
    cn = np.cross(coil_dir, coil_face)
    T_rot = np.append(ct1, ct2, axis=0)
    T_rot = np.append(T_rot, cn, axis=0)  # append
    T_rot = T_rot.tolist()  # to list
    return [T_rot,cp]