dst_pix_trans_src_pix = M
dst_norm_trans_dst_norm = dst_norm_to_dst_norm(
dst_pix_trans_src_pix, dsize_src, dsize_dst)
return homography_warp(src, inverse(dst_norm_trans_dst_norm), dsize_dst)
def get_perspective_transform(src, dst):
rCalculates a perspective transform from four pairs of the corresponding
After Change
raise ValueError("Input M must be a Bx3x3 tensor. Got {}"
.format(src.shape))
// launches the warper
return transform_warp_impl(src, M, (src.shape[-2:]), dsize)
def warp_affine(src, M, dsize, flags="bilinear", border_mode=None,
border_value=0):