scikits-image/scikits-image — pull request #107 by tonysyu (2011-12-27 19:06:00+00:00)
Title: Add rescale_intensity function with test and example.

I didn't make any attempts to optimize the rescaling for speed or memory use: e.g., a uint8 image will temporarily get cast to float64 to calculate rescaling.

The examples in the docstring work as doctests on my system, but since doctests are incredibly fragile, don't expect them to work on your system (mainly because numpy recently reworked their array printing). These tests are copied as actual tests in "test_exposure.py".