mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 21:27:17 +08:00
Merge pull request #362 from ahojnnes/perimeter-test
BUG: Fix failing perimeter test caused by bug in scipy.
This commit is contained in:
@@ -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