52491e0198b5cf1fb158a534c3613e2749f6be77,kornia/geometry/conversions.py,,convert_affinematrix_to_homography,#Any#,120
Before Change
if not (len(A.shape) == 3 and A.shape[-2:] == (2, 3)):
raise ValueError("Input matrix must be a Bx2x3 tensor. Got {}"
.format(A.shape))
H: torch.Tensor = torch.nn.functional.pad(A, [0, 0, 0, 1], "constant", value=0.)
H[..., -1, -1] += 1.0
return H
After Change
if not (len(A.shape) == 3 and A.shape[-2:] == (2, 3)):
raise ValueError("Input matrix must be a Bx2x3 tensor. Got {}"
.format(A.shape))
return _convert_affinematrix_to_homography_impl(A)
def convert_affinematrix_to_homography3d(A: torch.Tensor) -> torch.Tensor:
rFunction that converts batch of affine matrices from [Bx3x4] to [Bx4x4].
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances Project Name: arraiy/torchgeometry
Commit Name: 52491e0198b5cf1fb158a534c3613e2749f6be77
Time: 2020-08-02
Author: sj8716643@126.com
File Name: kornia/geometry/conversions.py
Class Name:
Method Name: convert_affinematrix_to_homography
Project Name: arraiy/torchgeometry
Commit Name: 52491e0198b5cf1fb158a534c3613e2749f6be77
Time: 2020-08-02
Author: sj8716643@126.com
File Name: kornia/geometry/conversions.py
Class Name:
Method Name: convert_affinematrix_to_homography3d
Project Name: arraiy/torchgeometry
Commit Name: ee64b4dea622ed7f0de85139a2a00c340b8d0508
Time: 2020-08-04
Author: sj8716643@126.com
File Name: kornia/geometry/conversions.py
Class Name:
Method Name: convert_affinematrix_to_homography3d
Project Name: arraiy/torchgeometry
Commit Name: ee64b4dea622ed7f0de85139a2a00c340b8d0508
Time: 2020-08-04
Author: sj8716643@126.com
File Name: kornia/geometry/conversions.py
Class Name:
Method Name: convert_affinematrix_to_homography
Project Name: arraiy/torchgeometry
Commit Name: 52491e0198b5cf1fb158a534c3613e2749f6be77
Time: 2020-08-02
Author: sj8716643@126.com
File Name: kornia/geometry/conversions.py
Class Name:
Method Name: convert_affinematrix_to_homography