From 6e644c4aa6726040d08a19cc00fe59b3c9938591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Tue, 17 Nov 2015 10:22:44 -0500 Subject: [PATCH] Remove single author from header, fix typo Functions in this file are from multiple authors, the original author is attributed in the contributors section and the Git history. --- CONTRIBUTORS.txt | 3 +++ skimage/morphology/selem.py | 12 ++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index bc58df84..c94755d8 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -215,3 +215,6 @@ - Jim Fienup, Alexander Iacchetta In-depth review of sub-pixel shift registration + +- Damian Eads + Structuring elements in morphology module. diff --git a/skimage/morphology/selem.py b/skimage/morphology/selem.py index 53972cdd..8e516103 100644 --- a/skimage/morphology/selem.py +++ b/skimage/morphology/selem.py @@ -1,12 +1,8 @@ -""" -:author: Damian Eads, 2009 -:license: modified BSD -""" - import numpy as np from scipy import ndimage as ndi from .. import draw + def square(width, dtype=np.uint8): """Generates a flat, square-shaped structuring element. @@ -37,7 +33,7 @@ def rectangle(width, height, dtype=np.uint8): """Generates a flat, rectangular-shaped structuring element. Every pixel in the rectangle generated for a given width and given height - belongs to the neighboorhood. + belongs to the neighborhood. Parameters ---------- @@ -65,7 +61,7 @@ def diamond(radius, dtype=np.uint8): """Generates a flat, diamond-shaped structuring element. A pixel is part of the neighborhood (i.e. labeled 1) if - the city block/manhattan distance between it and the center of + the city block/Manhattan distance between it and the center of the neighborhood is no greater than radius. Parameters @@ -193,7 +189,7 @@ def octahedron(radius, dtype=np.uint8): This is the 3D equivalent of a diamond. A pixel is part of the neighborhood (i.e. labeled 1) if - the city block/manhattan distance between it and the center of + the city block/Manhattan distance between it and the center of the neighborhood is no greater than radius. Parameters