mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-24 13:20:43 +08:00
Fix failing perimeter test caused by bug in scipy
This commit is contained in:
committed by
Stefan van der Walt
parent
633cb06a5a
commit
794920ca58
@@ -248,7 +248,7 @@ def test_perimeter():
|
||||
per = regionprops(SAMPLE, ['Perimeter'])[0]['Perimeter']
|
||||
assert_almost_equal(per, 59.2132034355964)
|
||||
|
||||
per = perimeter(SAMPLE, neighbourhood=8)
|
||||
per = perimeter(SAMPLE.astype('double'), neighbourhood=8)
|
||||
assert_almost_equal(per, 43.1213203436)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user