Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

fix reference

Dmytro Mishkinaa4ca6186fdb
diff --git a/docs/source/feature.rst b/docs/source/feature.rst
index a6b43a93c..e0d210e9a 100644
--- a/docs/source/feature.rst
+++ b/docs/source/feature.rst
@@ -35,3 +35,5 @@ kornia.feature
:members: forward
.. autoclass:: PatchDominantGradientOrientation
:members: forward
+
+.. bibliography:: references.bib
diff --git a/kornia/feature/affine_shape.py b/kornia/feature/affine_shape.py
index dff3f96d0..6b4c34684 100644
--- a/kornia/feature/affine_shape.py
+++ b/kornia/feature/affine_shape.py
@@ -15,6 +15,7 @@ from kornia.feature import extract_patches_from_pyramid
class PatchAffineShapeEstimator(nn.Module):
"""Module, which estimates the second moment matrix of the patch gradients in order to determine the
affine shape of the local feature as in :cite:`baumberg2000`.
+
Args:
patch_size: int, default = 19
eps: float, for safe division, default is 1e-10"""
diff --git a/kornia/feature/laf.py b/kornia/feature/laf.py
index bde101106..1bb6b442b 100644
--- a/kornia/feature/laf.py
+++ b/kornia/feature/laf.py
@@ -211,13 +211,13 @@ def get_laf_pts_to_draw(LAF: torch.Tensor,
def denormalize_laf(LAF: torch.Tensor, images: torch.Tensor) -> torch.Tensor:
"""De-normalizes LAFs from scale to image scale.
- B,N,H,W = images.size()
- MIN_SIZE = min(H,W)
- [a11 a21 x]
- [a21 a22 y]
- becomes
- [a11*MIN_SIZE a21*MIN_SIZE x*W]
- [a21*MIN_SIZE a22*MIN_SIZE y*H]
+ >>> B,N,H,W = images.size()
+ >>> MIN_SIZE = min(H,W)
+ [a11 a21 x]
+ [a21 a22 y]
+ becomes
+ [a11*MIN_SIZE a21*MIN_SIZE x*W]
+ [a21*MIN_SIZE a22*MIN_SIZE y*H]
Args:
LAF: (torch.Tensor).
@@ -243,15 +243,14 @@ def denormalize_laf(LAF: torch.Tensor, images: torch.Tensor) -> torch.Tensor:
def normalize_laf(LAF: torch.Tensor, images: torch.Tensor) -> torch.Tensor:
- """Normalizes LAFs to [0,1] scale from pixel scale.
- See below:
- B,N,H,W = images.size()
- MIN_SIZE = min(H,W)
- [a11 a21 x]
- [a21 a22 y]
- becomes
- [a11/MIN_SIZE a21/MIN_SIZE x/W]
- [a21/MIN_SIZE a22/MIN_SIZE y/H]
+ """Normalizes LAFs to [0,1] scale from pixel scale. See below:
+ >>> B,N,H,W = images.size()
+ >>> MIN_SIZE = min(H,W)
+ [a11 a21 x]
+ [a21 a22 y]
+ becomes:
+ [a11/MIN_SIZE a21/MIN_SIZE x/W]
+ [a21/MIN_SIZE a22/MIN_SIZE y/H]
Args:
LAF: (torch.Tensor).