Add string inputs for range parameters of rescale_intensity

This commit is contained in:
Tony S Yu
2014-02-23 14:36:31 -06:00
parent b45e8c935f
commit 7b104fdf14
3 changed files with 44 additions and 9 deletions
+5 -1
View File
@@ -134,7 +134,11 @@ dtype range::
Here, the ``in_range`` argument is set to the maximum range for a 10-bit image.
By default, ``rescale_intensity`` stretches the values of ``in_range`` to match
the range of the dtype.
the range of the dtype. ``rescale_intensity`` also accepts strings as inputs
to ``in_range`` and ``out_range``, so the example above could also be written
as::
>>> image = exposure.rescale_intensity(img10bit, in_range='uint10')
Note about negative values