Address reviewer comments

Add newline at EOF of selem.py
Add "optional" to grey.py and binary.py
This commit is contained in:
Nelson Brown
2014-07-11 15:19:33 -07:00
parent 1ef556b710
commit 9cd9a1372a
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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.
+2 -1
View File
@@ -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)