Skip to content

Commit

Permalink
Merge pull request #4001 from sciunto/rm_dead_code
Browse files Browse the repository at this point in the history
MAINT: remove dead code
  • Loading branch information
soupault committed Jul 14, 2019
2 parents 0949998 + 17ae1ad commit 55d23f7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions skimage/filters/_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@
__all__ = ['gaussian']


def _convert_input(image, preserve_range):
"""
Parameters
----------
preserve_range : bool, optional
Whether to keep the original range of values. Otherwise, the input
image is converted according to the conventions of `img_as_float`.
Also see https://scikit-image.org/docs/dev/user_guide/data_types.html
"""
if preserve_range:
image = image.astype(np.double)
else:
image = img_as_float(image)
return image


def gaussian(image, sigma=1, output=None, mode='nearest', cval=0,
multichannel=None, preserve_range=False, truncate=4.0):
"""Multi-dimensional Gaussian filter.
Expand Down

0 comments on commit 55d23f7

Please sign in to comment.