From 77f1e0ba473240fb9fcccd5d9ec884b9556b63c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 26 Aug 2012 08:52:20 +0200 Subject: [PATCH] Add deprecation warning in doc string to homography --- skimage/transform/_project.pyx | 3 +-- skimage/transform/_warps.py | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/skimage/transform/_project.pyx b/skimage/transform/_project.pyx index 4df6e001..201785ad 100644 --- a/skimage/transform/_project.pyx +++ b/skimage/transform/_project.pyx @@ -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. diff --git a/skimage/transform/_warps.py b/skimage/transform/_warps.py index f09f7944..4c499d6b 100644 --- a/skimage/transform/_warps.py +++ b/skimage/transform/_warps.py @@ -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