Add deprecation warning in doc string to homography

This commit is contained in:
Johannes Schönberger
2012-08-27 13:30:12 +02:00
parent 571151958f
commit 77f1e0ba47
2 changed files with 6 additions and 3 deletions
+1 -2
View File
@@ -35,8 +35,7 @@ cdef inline _matrix_transform(double x, double y, double* H, double *x_,
def homography(np.ndarray image, np.ndarray H, output_shape=None, int order=1,
mode='constant', double cval=0):
"""
Projective transformation (homography).
"""Projective transformation (homography).
Perform a projective transformation (homography) of a
floating point image, using bi-linear interpolation.
+5 -1
View File
@@ -74,7 +74,11 @@ def swirl(image, center=None, strength=1, radius=100, rotation=0,
def homography(image, H, output_shape=None, order=1,
mode='constant', cval=0.):
"""Perform a projective transformation (homography) on an image.
"""
.. deprecated::
0.7
Perform a projective transformation (homography) on an image.
For each pixel, given its homogeneous coordinate :math:`\mathbf{x}
= [x, y, 1]^T`, its target position is calculated by multiplying