Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

docs: link create_meshgrid by the name the inventory holds (#4797)

Dipak Chaudhari3f31ab8fe706
diff --git a/changelog.d/4797.fixed.md b/changelog.d/4797.fixed.md
new file mode 100644
index 000000000..abfdb8246
--- /dev/null
+++ b/changelog.d/4797.fixed.md
@@ -0,0 +1 @@
+The Conventions page and the `remap` docstring now link to `kornia.geometry.grid.create_meshgrid` instead of rendering its name as plain text.
diff --git a/docs/source/get-started/conventions.rst b/docs/source/get-started/conventions.rst
index a9060b4eb..7200d12fc 100644
--- a/docs/source/get-started/conventions.rst
+++ b/docs/source/get-started/conventions.rst
@@ -44,7 +44,7 @@ Coordinates and sizes
``align_corners=True`` β€” not to its default, ``align_corners=False``,
which places the same values up to half a pixel off β€” exactly half a
pixel at the image borders, and identically at the image center.
- :func:`kornia.geometry.create_meshgrid` returns a normalized grid by
+ :func:`kornia.geometry.grid.create_meshgrid` returns a normalized grid by
default (``normalized_coordinates=True``).
- 3D grids and 3D pixel coordinates are ``(d, x, y)`` β€” depth first, not
``(x, y, z)``; :func:`kornia.geometry.grid.create_meshgrid3d` produces this
diff --git a/kornia/geometry/transform/imgwarp.py b/kornia/geometry/transform/imgwarp.py
index 4a6e9548a..f9a1af849 100644
--- a/kornia/geometry/transform/imgwarp.py
+++ b/kornia/geometry/transform/imgwarp.py
@@ -853,7 +853,7 @@ def remap(
[0., 0.]]]])
.. note::
- This function is often used in conjunction with :func:`kornia.geometry.create_meshgrid`.
+ This function is often used in conjunction with :func:`kornia.geometry.grid.create_meshgrid`.
"""
KORNIA_CHECK_SHAPE(image, ["B", "C", "H", "W"])