mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 12:01:51 +08:00
fix tests
This commit is contained in:
@@ -165,13 +165,13 @@ def test_isodata_moon_image():
|
||||
|
||||
|
||||
def test_isodata_moon_image_negative_int():
|
||||
moon = data.moon().astype(np.int32)
|
||||
moon = skimage.img_as_ubyte(data.moon()).astype(np.int32)
|
||||
moon -= 100
|
||||
assert threshold_isodata(moon) == -13
|
||||
|
||||
|
||||
def test_isodata_moon_image_negative_float():
|
||||
moon = data.moon().astype(np.float64)
|
||||
moon = skimage.img_as_ubyte(data.moon()).astype(np.float64)
|
||||
moon -= 100
|
||||
assert -13 < threshold_isodata(moon) < -12
|
||||
|
||||
|
||||
Reference in New Issue
Block a user