From c7fbd3282b5277c709e17b234c953b45d6c7c6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 3 Nov 2013 09:28:46 +0100 Subject: [PATCH] Fix doctest of remove_small_objects --- skimage/morphology/misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/morphology/misc.py b/skimage/morphology/misc.py index 5c157e7f..dc8290d2 100644 --- a/skimage/morphology/misc.py +++ b/skimage/morphology/misc.py @@ -37,17 +37,17 @@ def remove_small_objects(ar, min_size=64, connectivity=1, in_place=False): >>> a = np.array([[0, 0, 0, 1, 0], ... [1, 1, 1, 0, 0], ... [1, 1, 1, 0, 1]], bool) - >>> b = morphology.remove_small_connected_components(a, 6) + >>> b = morphology.remove_small_objects(a, 6) >>> b array([[False, False, False, False, False], [ True, True, True, False, False], [ True, True, True, False, False]], dtype=bool) - >>> c = morphology.remove_small_connected_components(a, 7, connectivity=2) + >>> c = morphology.remove_small_objects(a, 7, connectivity=2) >>> c array([[False, False, False, True, False], [ True, True, True, False, False], [ True, True, True, False, False]], dtype=bool) - >>> d = morphology.remove_small_connected_components(a, 6, in_place=True) + >>> d = morphology.remove_small_objects(a, 6, in_place=True) >>> d is a True """