π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
doc updates for angle (#879)
Anthony Bisulcoea6c4c1ea561
diff --git a/kornia/geometry/transform/imgwarp.py b/kornia/geometry/transform/imgwarp.pyindex e13e26242..d828efa4e 100644--- a/kornia/geometry/transform/imgwarp.py+++ b/kornia/geometry/transform/imgwarp.py@@ -470,6 +470,7 @@ def get_affine_matrix2d(translations: torch.Tensor, center: torch.Tensor, scale:translations (torch.Tensor): tensor containing the translation vector with shape :math:`(B, 2)`.center (torch.Tensor): tensor containing the center vector with shape :math:`(B, 2)`.scale (torch.Tensor): tensor containing the scale factor with shape :math:`(B, 2)`.+ angle: (torch.Tensor): tensor of angles in degrees :math:`(B)`.sx (torch.Tensor, optional): tensor containing the shear factor in the x-direction with shape :math:`(B)`.sy (torch.Tensor, optional): tensor containing the shear factor in the y-direction with shape :math:`(B)`.@@ -544,6 +545,9 @@ def get_affine_matrix3d(translations: torch.Tensor, center: torch.Tensor, scale:translations (torch.Tensor): tensor containing the translation vector (dx,dy,dz) with shape :math:`(B, 3)`.center (torch.Tensor): tensor containing the center vector (x,y,z) with shape :math:`(B, 3)`.scale (torch.Tensor): tensor containing the scale factor with shape :math:`(B)`.+ angle: (torch.Tensor): angle axis vector containing the rotation angles in degrees in the form+ of (rx, ry, rz) with shape :math:`(B, 3)`. Internally it calls Rodrigues to compute+ the rotation matrix from axis-angle.sxy (torch.Tensor, optional): tensor containing the shear factor in the xy-direction with shape :math:`(B)`.sxz (torch.Tensor, optional): tensor containing the shear factor in the xz-direction with shape :math:`(B)`.syx (torch.Tensor, optional): tensor containing the shear factor in the yx-direction with shape :math:`(B)`.