π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
update docs
edgarriba140474540834
diff --git a/docs/source/index.rst b/docs/source/index.rstindex 937bd96f6..773837cf4 100644--- a/docs/source/index.rst+++ b/docs/source/index.rst@@ -54,8 +54,6 @@ Pinhole.. autoclass:: InversePose.. autoclass:: PinholeMatrix.. autoclass:: InversePinholeMatrix-.. autoclass:: ScalePinhole-.. autoclass:: Homography_i_H_refConversionsdiff --git a/torchgeometry/imgwarp.py b/torchgeometry/imgwarp.pyindex 12303a04f..d76dfd8ff 100644--- a/torchgeometry/imgwarp.py+++ b/torchgeometry/imgwarp.py@@ -280,13 +280,13 @@ def get_rotation_matrix2d(center, angle, scale):Tensor: the affine matrix of 2D rotation.Shape:- - Input: :math:`(B, 2)`, :math:`(B, 1)` and :math:`(B, 1)`+ - Input: :math:`(B, 2)`, :math:`(B)` and :math:`(B)`- Output: :math:`(B, 2, 3)`Example:>>> center = torch.zeros(1, 2)- >>> scale = torch.ones(1, 1)- >>> angle = 45. * torch.ones(1, 1)+ >>> scale = torch.ones(1)+ >>> angle = 45. * torch.ones(1)>>> M = tgm.get_rotation_matrix2d(center, angle, scale)tensor([[[ 0.7071, 0.7071, 0.0000],[-0.7071, 0.7071, 0.0000]]])