Add missing doc string for inverse transform

This commit is contained in:
Johannes Schönberger
2012-09-03 21:46:17 +02:00
parent c1f3515e00
commit 33151f4349
+13
View File
@@ -111,6 +111,19 @@ class ProjectiveTransform(GeometricTransform):
return self._apply_mat(coords, self._matrix)
def inverse(self, coords):
"""Apply inverse transformation.
Parameters
----------
coords : (N, 2) array
Source coordinates.
Returns
-------
coords : (N, 2) array
Transformed coordinates.
"""
return self._apply_mat(coords, self._inv_matrix)
def estimate(self, src, dst):