mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-25 13:30:51 +08:00
Add whitespace following comma
This commit is contained in:
@@ -3,13 +3,14 @@ import scipy.ndimage as nd
|
||||
from .selem import _default_selem
|
||||
|
||||
# Our function names don't exactly correspond to ndimages.
|
||||
# These dictionaries translate from our names to scipy's.
|
||||
skimage2ndimage = {x: 'grey_' + x
|
||||
for x in ('erosion','dilation','opening','closing')}
|
||||
skimage2ndimage.update({x: x
|
||||
for x in ('binary_erosion','binary_dilation',
|
||||
'binary_opening','binary_closing',
|
||||
'black_tophat','white_tophat')})
|
||||
# This dictionary translates from our names to scipy's.
|
||||
funcs = ('erosion', 'dilation', 'opening', 'closing')
|
||||
skimage2ndimage = {x: 'grey_' + x for x in funcs}
|
||||
|
||||
# These function names are the same in ndimage.
|
||||
funcs = ('binary_erosion', 'binary_dilation', 'binary_opening',
|
||||
'binary_closing', 'black_tophat', 'white_tophat')
|
||||
skimage2ndimage.update({x: x for x in funcs})
|
||||
|
||||
def default_fallback(func):
|
||||
"""Decorator to fall back on ndimage for images with more than 2 dimensions
|
||||
|
||||
Reference in New Issue
Block a user