matlab_cp2tform.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:prepare-faces-zyf 作者: walkoncross 项目源码 文件源码
def tforminv(trans, uv):
    """
    Function:
    ----------
        apply the inverse of affine transform 'trans' to uv

    Parameters:
    ----------
        @trans: 3x3 np.array
            transform matrix
        @uv: Kx2 np.array
            each row is a pair of coordinates (x, y)

    Returns:
    ----------
        @xy: Kx2 np.array
            each row is a pair of inverse-transformed coordinates (x, y)
    """
    Tinv = inv(trans)
    xy = tformfwd(Tinv, uv)
    return xy
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号