From 7222d1fb934ba179e4f4a84e899170a04c46f405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Fri, 22 Jan 2016 08:59:12 +0100 Subject: [PATCH] Fix hessian_matrix doctest --- skimage/feature/corner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/feature/corner.py b/skimage/feature/corner.py index f65f30e5..6081e1a2 100644 --- a/skimage/feature/corner.py +++ b/skimage/feature/corner.py @@ -136,7 +136,7 @@ def hessian_matrix(image, sigma=1, mode='constant', cval=0): -------- >>> from skimage.feature import hessian_matrix >>> square = np.zeros((5, 5)) - >>> square[2, 2] = 1 + >>> square[2, 2] = -1.0 / 1591.54943092 >>> Hxx, Hxy, Hyy = hessian_matrix(square, sigma=0.1) >>> Hxx array([[ 0., 0., 0., 0., 0.], @@ -280,7 +280,7 @@ def hessian_matrix_eigvals(Hxx, Hxy, Hyy): -------- >>> from skimage.feature import hessian_matrix, hessian_matrix_eigvals >>> square = np.zeros((5, 5)) - >>> square[2, 2] = 1 + >>> square[2, 2] = -1 / 1591.54943092 >>> Hxx, Hxy, Hyy = hessian_matrix(square, sigma=0.1) >>> hessian_matrix_eigvals(Hxx, Hxy, Hyy)[0] array([[ 0., 0., 0., 0., 0.],