Add test case for eps corner_harris method

This commit is contained in:
Johannes Schönberger
2013-11-22 12:25:06 +01:00
parent 4033566ae6
commit 335a74e11f
+8 -2
View File
@@ -19,7 +19,11 @@ def test_square_image():
assert len(results) == 57
# Harris
results = peak_local_max(corner_harris(im))
results = peak_local_max(corner_harris(im, method='k'))
# interest at corner
assert len(results) == 1
results = peak_local_max(corner_harris(im, method='eps'))
# interest at corner
assert len(results) == 1
@@ -41,7 +45,9 @@ def test_noisy_square_image():
assert results.any()
# Harris
results = peak_local_max(corner_harris(im, sigma=1.5))
results = peak_local_max(corner_harris(im, sigma=1.5, method='k'))
assert len(results) == 1
results = peak_local_max(corner_harris(im, sigma=1.5, method='eps'))
assert len(results) == 1
# Shi-Tomasi