π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
add homography warper quick usage
Edgar Riba390c7dec1da5
diff --git a/README.rst b/README.rstindex 9cf02eccf..0e35e5f4f 100644--- a/README.rst+++ b/README.rst@@ -18,8 +18,21 @@ Quick Usagex_deg = dgm.rad2deg(x_rad)torch.allclose(x_rad, dgm.deg2rad(x_deg)) # True++-------------------------------------------------------+.. code:: python++ import torch+ import torchgeometry as dgm # differential geometry++ img_ref = torch.rand(1, 3, 32, 32) # NxCxHxW+ dst_homo_ref = torch.eye(1) + eps # Nx3x3+ warper = dgm.HomographyWarper(32, 32)+ img_ref_to_dst = warper(img_ref, dst_homo_ref) # NxCxHxW++Installation============@@ -39,4 +52,3 @@ TestingContributing============We appreciate all contributions. If you are planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us.-