mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 06:28:26 +08:00
Address reviewer comments
Add newline at EOF of selem.py Add "optional" to grey.py and binary.py
This commit is contained in:
@@ -21,7 +21,7 @@ def binary_erosion(image, selem=None, out=None):
|
||||
selem : ndarray, optional
|
||||
The neighborhood expressed as a 2-D array of 1's and 0's.
|
||||
If None, use cross-shaped structuring element (connectivity=1).
|
||||
out : ndarray of bool
|
||||
out : ndarray of bool, optional
|
||||
The array to store the result of the morphology. If None is
|
||||
passed, a new array will be allocated.
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ def black_tophat(image, selem=None, out=None):
|
||||
selem : ndarray, optional
|
||||
The neighborhood expressed as a 2-D array of 1's and 0's.
|
||||
If None, use cross-shaped structuring element (connectivity=1).
|
||||
out : ndarray
|
||||
out : ndarray, optional
|
||||
The array to store the result of the morphology. If None
|
||||
is passed, a new array will be allocated.
|
||||
|
||||
|
||||
@@ -310,4 +310,5 @@ def _default_selem(ndim):
|
||||
are 1 and 0 otherwise.
|
||||
|
||||
"""
|
||||
return ndimage.morphology.generate_binary_structure(ndim, 1)
|
||||
return ndimage.morphology.generate_binary_structure(ndim, 1)
|
||||
|
||||
Reference in New Issue
Block a user