70445d33713dd05ef3bddbb878560bf31d395ba8,torchgeometry/imgwarp.py,,warp_perspective,#Any#Any#Any#Any#Any#Any#,44

Before Change


    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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: arraiy/torchgeometry
Commit Name: 70445d33713dd05ef3bddbb878560bf31d395ba8
Time: 2018-10-16
Author: edgar.riba@gmail.com
File Name: torchgeometry/imgwarp.py
Class Name:
Method Name: warp_perspective


Project Name: cornellius-gp/gpytorch
Commit Name: ad18add8ae7da04213813b5675b903bbf4be1ebd
Time: 2021-02-10
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py
Class Name: KroneckerProductAddedDiagLazyTensor
Method Name: _root_inv_decomposition


Project Name: cornellius-gp/gpytorch
Commit Name: 240acbfa801d4685c5408ca94a71a6cb7dfaad02
Time: 2020-07-17
Author: balandat@fb.com
File Name: gpytorch/lazy/kronecker_product_lazy_tensor.py
Class Name: KroneckerProductTriangularLazyTensor
Method Name: inv_matmul


Project Name: ANTsX/ANTsPy
Commit Name: cb83ab691b8c2558a601a56d2a2de2ec5cf6ad09
Time: 2017-10-05
Author: ncullen.th@dartmouth.edu
File Name: ants/core/ants_transform.py
Class Name: ANTsTransform
Method Name: invert