From 7efb0988b079800924cc60581007e6a3ede7102e Mon Sep 17 00:00:00 2001 From: "K.-Michael Aye" Date: Tue, 7 Feb 2012 17:21:36 +0100 Subject: [PATCH] Fixed 2 typos and 2 wrong argument types in the docs. --- skimage/morphology/selem.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/skimage/morphology/selem.py b/skimage/morphology/selem.py index 4a5ee0bd..d98f630a 100644 --- a/skimage/morphology/selem.py +++ b/skimage/morphology/selem.py @@ -62,13 +62,13 @@ def rectangle(width, height, dtype=np.uint8): def diamond(radius, dtype=np.uint8): """ Generates a flat, diamond-shaped structuring element of a given - radius. A pixel is part of the neighborhood (i.e. labeled 1) iff + radius. A pixel is part of the neighborhood (i.e. labeled 1) if the city block/manhattan distance between it and the center of the neighborhood is no greater than radius. Parameters ---------- - radius : string + radius : int The radius of the diamond-shaped structuring element. dtype : data-type @@ -89,12 +89,12 @@ def diamond(radius, dtype=np.uint8): def disk(radius, dtype=np.uint8): """ Generates a flat, disk-shaped structuring element of a given radius. - A pixel is within the neighborhood iff the euclidean distance between + A pixel is within the neighborhood if the euclidean distance between it and the origin is no greater than a radius. Parameters ---------- - radius : string + radius : int The radius of the disk-shaped structuring element. dtype : data-type