From 96078c1f6d4d21680e37f4f292553268fe37d742 Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Sat, 16 Jul 2016 21:31:23 -0500 Subject: [PATCH] Fix doctest to new Hessian edge values --- skimage/feature/corner.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/skimage/feature/corner.py b/skimage/feature/corner.py index 5246ba92..adbf2cf7 100644 --- a/skimage/feature/corner.py +++ b/skimage/feature/corner.py @@ -270,14 +270,14 @@ 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 / 1591.54943092 + >>> square[2, 2] = 4 >>> Hxx, Hxy, Hyy = hessian_matrix(square, sigma=0.1) >>> hessian_matrix_eigvals(Hxx, Hxy, Hyy)[0] - array([[ 0., 0., 0., 0., 0.], - [ 0., 0., 0., 0., 0.], - [ 0., 0., 1., 0., 0.], - [ 0., 0., 0., 0., 0.], - [ 0., 0., 0., 0., 0.]]) + array([[ 0., 0., 2., 0., 0.], + [ 0., 1., 0., 1., 0.], + [ 2., 0., -2., 0., 2.], + [ 0., 1., 0., 1., 0.], + [ 0., 0., 2., 0., 0.]]) """