moved public interface of hessian determinant to corner.py

This commit is contained in:
Vighnesh Birodkar
2014-04-09 10:33:24 +05:30
parent 61a8a78657
commit e818a42fba
5 changed files with 65 additions and 9 deletions
+8 -1
View File
@@ -12,7 +12,8 @@ from skimage.feature import (corner_moravec, corner_harris, corner_shi_tomasi,
corner_kitchen_rosenfeld, corner_foerstner,
corner_fast, corner_orientations,
structure_tensor, structure_tensor_eigvals,
hessian_matrix, hessian_matrix_eigvals)
hessian_matrix, hessian_matrix_eigvals,
hessian_matrix_det)
def test_structure_tensor():
@@ -91,6 +92,12 @@ def test_hessian_matrix_eigvals():
[0, 0, 0, 0, 0]]))
def test_hessian_matrix_det():
image = np.ones((5, 5))
det = hessian_matrix_det(image, 3, False)
assert_array_equal(det, 0)
def test_square_image():
im = np.zeros((50, 50)).astype(float)
im[:25, :25] = 1.