mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-21 12:50:27 +08:00
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.
This commit is contained in:
@@ -215,3 +215,6 @@
|
||||
|
||||
- Jim Fienup, Alexander Iacchetta
|
||||
In-depth review of sub-pixel shift registration
|
||||
|
||||
- Damian Eads
|
||||
Structuring elements in morphology module.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user