scikits-image/scikits-image — pull request #267 by tonysyu (2012-08-25 01:50:17+00:00)
Title: BUG: Adjust pixel limits based on image data type

Before, the viewer used color limits based on the original image. So, for example, if the original image is uint8, but then later replaced by a binary image, the viewer displays a black image because the viewer expects white to be 255, not 1 (or True).

Example demonstrating the issue (all black before PR, correctly displayed after PR):

```python
from skimage.viewer import ImageViewer
from skimage import data

image = data.coins()

viewer = ImageViewer(image) # initialize with uint8 image
viewer.image = image > 100 # replace with bool image
viewer.show()
```