From 5cce39a44ace53223ac547fa50a90d6b9aaf0646 Mon Sep 17 00:00:00 2001 From: James Bergstra Date: Mon, 20 Aug 2012 23:44:31 -0400 Subject: [PATCH] ENH: remove call in tests to deprecated homography fn --- skimage/transform/tests/test_warps.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/skimage/transform/tests/test_warps.py b/skimage/transform/tests/test_warps.py index 610c42a8..72604b03 100644 --- a/skimage/transform/tests/test_warps.py +++ b/skimage/transform/tests/test_warps.py @@ -2,9 +2,10 @@ import sys from numpy.testing import assert_array_almost_equal, run_module_suite import numpy as np -from skimage.transform import (warp, homography, fast_homography, - SimilarityTransform, ProjectiveTransform, - AffineTransform) +from skimage.transform import (warp, fast_homography, + AffineTransform, + ProjectiveTransform, + SimilarityTransform) from skimage import transform as tf, data, img_as_float from skimage.color import rgb2gray @@ -31,7 +32,10 @@ def test_homography(): M = np.array([[np.cos(theta),-np.sin(theta),0], [np.sin(theta), np.cos(theta),4], [0, 0, 1]]) - x90 = homography(x, M, order=1) + + x90 = warp(x, + inverse_map=ProjectiveTransform(M).inverse, + order=1) assert_array_almost_equal(x90, np.rot90(x))