6 Commits

Author SHA1 Message Date
M Clark 06f73d7611 labelplugin, images with multiple channels
This change lets label tool work with images that have multiple channels. Before this change we would a value error.

Test:
```
import skimage
from skimage.viewer import plugins
from skimage import data, viewer, transform, color
imdata = skimage.data.astronaut()
viewer = skimage.viewer.ImageViewer(imdata)
viewer+=skimage.viewer.plugins.LabelPainter()
viewer.show()
```

Previous error:
```
...skimage/viewer/canvastools/painttool.py in at(self, row, col)
    188 
    189     def at(self, row, col):
--> 190         h, w = self.array_shape
    191         r = self.radius
    192         xmin = max(0, col - r)

ValueError: too many values to unpack (expected 2)
```
2016-08-15 14:33:39 +08:00
blink1073 1775e959d6 Switch plugins to use new tool api 2014-09-01 09:59:03 -05:00
blink1073 85537e3f85 Update the paint tool shape with the viewer image changes 2014-02-08 22:12:01 -06:00
Tony S Yu 230fefa748 ENH: Improve usability of watershed_demo.
* Replace 0 label with 'Erase'
* Use OK button instead of enter key to calculate watershed.
2013-01-24 21:47:42 -06:00
Tony S Yu 9c4eb3a6fc Use print function for python 3 compatibility 2012-12-26 22:21:24 -08:00
Tony S Yu df916713f5 ENH: Add PaintTool and LabelPlugin 2012-12-26 22:03:59 -08:00