mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 16:01:28 +08:00
Removed None defaults in rescale_intensity
This commit is contained in:
@@ -17,8 +17,3 @@ Version 0.14
|
||||
deprecation warning test for this alias.
|
||||
* Remove deprecated ``sigma_range`` kwargs in ``skimage.restoration.denoise_bilateral``
|
||||
and corresponding tests.
|
||||
|
||||
|
||||
Version 0.13
|
||||
------------
|
||||
* Remove deprecated `None` defaults for `skimage.exposure.rescale_intensity`
|
||||
|
||||
@@ -289,16 +289,6 @@ def rescale_intensity(image, in_range='image', out_range='dtype'):
|
||||
"""
|
||||
dtype = image.dtype.type
|
||||
|
||||
if in_range is None:
|
||||
in_range = 'image'
|
||||
msg = "`in_range` should not be set to None. Use {!r} instead."
|
||||
warn(msg.format(in_range))
|
||||
|
||||
if out_range is None:
|
||||
out_range = 'dtype'
|
||||
msg = "`out_range` should not be set to None. Use {!r} instead."
|
||||
warn(msg.format(out_range))
|
||||
|
||||
imin, imax = intensity_range(image, in_range)
|
||||
omin, omax = intensity_range(image, out_range, clip_negative=(imin >= 0))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user