From 001a63bd21c3afe652458b021bcefeddb760831d Mon Sep 17 00:00:00 2001 From: Nelson Brown Date: Tue, 15 Jul 2014 08:03:31 -0700 Subject: [PATCH] Remove repeated comments --- skimage/morphology/binary.py | 12 ------------ skimage/morphology/grey.py | 24 ------------------------ 2 files changed, 36 deletions(-) diff --git a/skimage/morphology/binary.py b/skimage/morphology/binary.py index 69d3eb08..216e3690 100644 --- a/skimage/morphology/binary.py +++ b/skimage/morphology/binary.py @@ -53,10 +53,6 @@ def binary_erosion(image, selem=None, out=None): return np.equal(conv, selem_sum, out=out) -# Our functions only work in 2D, so for 3D or higher input we should fall back -# on `scipy.ndimage`. Additionally, we want to use a cross-shaped structuring -# element of the appropriate dimension for each of these functions. -# The `default_callback` provides all these. @default_fallback def binary_dilation(image, selem=None, out=None): """Return fast binary morphological dilation of an image. @@ -102,10 +98,6 @@ def binary_dilation(image, selem=None, out=None): return np.not_equal(conv, 0, out=out) -# Our functions only work in 2D, so for 3D or higher input we should fall back -# on `scipy.ndimage`. Additionally, we want to use a cross-shaped structuring -# element of the appropriate dimension for each of these functions. -# The `default_callback` provides all these. @default_fallback def binary_opening(image, selem=None, out=None): """Return fast binary morphological opening of an image. @@ -140,10 +132,6 @@ def binary_opening(image, selem=None, out=None): return out -# Our functions only work in 2D, so for 3D or higher input we should fall back -# on `scipy.ndimage`. Additionally, we want to use a cross-shaped structuring -# element of the appropriate dimension for each of these functions. -# The `default_callback` provides all these. @default_fallback def binary_closing(image, selem=None, out=None): """Return fast binary morphological closing of an image. diff --git a/skimage/morphology/grey.py b/skimage/morphology/grey.py index e09872cb..19a4a346 100644 --- a/skimage/morphology/grey.py +++ b/skimage/morphology/grey.py @@ -8,10 +8,6 @@ from . import cmorph __all__ = ['erosion', 'dilation', 'opening', 'closing', 'white_tophat', 'black_tophat'] -# Our functions only work in 2D, so for 3D or higher input we should fall back -# on `scipy.ndimage`. Additionally, we want to use a cross-shaped structuring -# element of the appropriate dimension for each of these functions. -# The `default_callback` provides all these. @default_fallback def erosion(image, selem=None, out=None, shift_x=False, shift_y=False): """Return greyscale morphological erosion of an image. @@ -66,10 +62,6 @@ def erosion(image, selem=None, out=None, shift_x=False, shift_y=False): shift_x=shift_x, shift_y=shift_y) -# Our functions only work in 2D, so for 3D or higher input we should fall back -# on `scipy.ndimage`. Additionally, we want to use a cross-shaped structuring -# element of the appropriate dimension for each of these functions. -# The `default_callback` provides all these. @default_fallback def dilation(image, selem=None, out=None, shift_x=False, shift_y=False): """Return greyscale morphological dilation of an image. @@ -126,10 +118,6 @@ def dilation(image, selem=None, out=None, shift_x=False, shift_y=False): shift_x=shift_x, shift_y=shift_y) -# Our functions only work in 2D, so for 3D or higher input we should fall back -# on `scipy.ndimage`. Additionally, we want to use a cross-shaped structuring -# element of the appropriate dimension for each of these functions. -# The `default_callback` provides all these. @default_fallback def opening(image, selem=None, out=None): """Return greyscale morphological opening of an image. @@ -183,10 +171,6 @@ def opening(image, selem=None, out=None): return out -# Our functions only work in 2D, so for 3D or higher input we should fall back -# on `scipy.ndimage`. Additionally, we want to use a cross-shaped structuring -# element of the appropriate dimension for each of these functions. -# The `default_callback` provides all these. @default_fallback def closing(image, selem=None, out=None): """Return greyscale morphological closing of an image. @@ -240,10 +224,6 @@ def closing(image, selem=None, out=None): return out -# Our functions only work in 2D, so for 3D or higher input we should fall back -# on `scipy.ndimage`. Additionally, we want to use a cross-shaped structuring -# element of the appropriate dimension for each of these functions. -# The `default_callback` provides all these. @default_fallback def white_tophat(image, selem=None, out=None): """Return white top hat of an image. @@ -295,10 +275,6 @@ def white_tophat(image, selem=None, out=None): return out -# Our functions only work in 2D, so for 3D or higher input we should fall back -# on `scipy.ndimage`. Additionally, we want to use a cross-shaped structuring -# element of the appropriate dimension for each of these functions. -# The `default_callback` provides all these. @default_fallback def black_tophat(image, selem=None, out=None): """Return black top hat of an image.