diff --git a/skimage/filter/tests/test_thresholding.py b/skimage/filter/tests/test_thresholding.py index ec95e677..4f3daf42 100644 --- a/skimage/filter/tests/test_thresholding.py +++ b/skimage/filter/tests/test_thresholding.py @@ -37,6 +37,17 @@ class TestSimpleImage(): assert_array_equal(ref, out) def test_threshold_adaptive_mean(self): + ref = np.array( + [[False, False, False, False, True], + [False, False, True, False, True], + [False, False, True, True, False], + [False, True, True, False, False], + [ True, True, False, False, False]] + ) + out = threshold_adaptive(self.image, 3, 0, 'mean') + assert_array_equal(ref, out) + + def test_threshold_adaptive_median(self): ref = np.array( [[False, False, False, False, True], [False, False, True, False, False], @@ -44,7 +55,7 @@ class TestSimpleImage(): [False, False, True, True, False], [False, True, False, False, False]] ) - out = threshold_adaptive(self.image, 3, 0, 'mean') + out = threshold_adaptive(self.image, 3, 0, 'median') assert_array_equal(ref, out)