mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-20 12:40:31 +08:00
Add test case for eps corner_harris method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user