From 45ee2e13237aab190ca16cdac0223e78465cd9e1 Mon Sep 17 00:00:00 2001 From: Neil Yager Date: Thu, 27 Oct 2011 09:13:06 +0100 Subject: [PATCH] BUG: Fix failing test_homography unit test. --- skimage/transform/tests/test_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/transform/tests/test_project.py b/skimage/transform/tests/test_project.py index de63419f..2482aae0 100644 --- a/skimage/transform/tests/test_project.py +++ b/skimage/transform/tests/test_project.py @@ -15,7 +15,7 @@ def test_stackcopy(): assert_array_almost_equal(x[...,i], y) def test_homography(): - x = np.arange(9).reshape((3, 3)) + 1 + x = np.arange(9, dtype=np.uint8).reshape((3, 3)) + 1 theta = -np.pi/2 M = np.array([[np.cos(theta),-np.sin(theta),0], [np.sin(theta), np.cos(theta),2],