From 5c9c8c186781e4933211c535fe77c6860f8296e3 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Wed, 8 Feb 2012 13:07:37 -0800 Subject: [PATCH] DOC: Fix Other Parameters section. --- skimage/morphology/selem.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/skimage/morphology/selem.py b/skimage/morphology/selem.py index d98f630a..ce58fbfa 100644 --- a/skimage/morphology/selem.py +++ b/skimage/morphology/selem.py @@ -16,9 +16,8 @@ def square(width, dtype=np.uint8): width : int The width and height of the square - Additional Parameters - --------------------- - + Other Parameters + ---------------- dtype : data-type The data type of the structuring element. @@ -27,6 +26,7 @@ def square(width, dtype=np.uint8): selem : ndarray A structuring element consisting only of ones, i.e. every pixel belongs to the neighborhood. + """ return np.ones((width, width), dtype=dtype) @@ -44,18 +44,17 @@ def rectangle(width, height, dtype=np.uint8): height : int The height of the rectangle - Additional Parameters - --------------------- - + Other Parameters + ---------------- dtype : data-type The data type of the structuring element. Returns ------- selem : ndarray - A structuring element consisting only of ones, i.e. every pixel belongs to the neighborhood. + """ return np.ones((width, height), dtype=dtype)