From ce0e9174c96e793474f7c44889d22155093e4b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sat, 2 Aug 2014 09:45:36 -0400 Subject: [PATCH] Fix test cases which are now wrong due to previous binning error --- skimage/filter/tests/test_thresholding.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/skimage/filter/tests/test_thresholding.py b/skimage/filter/tests/test_thresholding.py index 8464cb21..11e15575 100644 --- a/skimage/filter/tests/test_thresholding.py +++ b/skimage/filter/tests/test_thresholding.py @@ -157,7 +157,7 @@ def test_yen_coins_image_as_float(): def test_isodata_camera_image(): camera = skimage.img_as_ubyte(data.camera()) - assert threshold_isodata(camera) == 88 + assert threshold_isodata(camera) == 87 def test_isodata_coins_image(): @@ -167,19 +167,19 @@ def test_isodata_coins_image(): def test_isodata_moon_image(): moon = skimage.img_as_ubyte(data.moon()) - assert threshold_isodata(moon) == 87 + assert threshold_isodata(moon) == 86 def test_isodata_moon_image_negative_int(): moon = skimage.img_as_ubyte(data.moon()).astype(np.int32) moon -= 100 - assert threshold_isodata(moon) == -13 + assert threshold_isodata(moon) == -14 def test_isodata_moon_image_negative_float(): moon = skimage.img_as_ubyte(data.moon()).astype(np.float64) moon -= 100 - assert -13 < threshold_isodata(moon) < -12 + assert -14 < threshold_isodata(moon) < -13 if __name__ == '__main__':