From 99c95f8e4f7dfd4a9f3805d93f565bfa3ee60018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 5 Oct 2014 11:19:37 -0400 Subject: [PATCH] Refer to rank filters from morphology functions --- skimage/morphology/grey.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/skimage/morphology/grey.py b/skimage/morphology/grey.py index 19a4a346..4dfdbc3d 100644 --- a/skimage/morphology/grey.py +++ b/skimage/morphology/grey.py @@ -35,6 +35,11 @@ def erosion(image, selem=None, out=None, shift_x=False, shift_y=False): eroded : uint8 array The result of the morphological erosion. + Notes + ----- + The lower algorithm complexity makes the `skimage.filter.rank.minimum` + more efficient for larger images and structuring elements. + Examples -------- >>> # Erosion shrinks bright regions @@ -90,6 +95,11 @@ def dilation(image, selem=None, out=None, shift_x=False, shift_y=False): dilated : uint8 array The result of the morphological dilation. + Notes + ----- + The lower algorithm complexity makes the `skimage.filter.rank.maximum` + more efficient for larger images and structuring elements. + Examples -------- >>> # Dilation enlarges bright regions