mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-06 13:30:21 +08:00
Switch plugins to use new tool api
This commit is contained in:
committed by
Steven Silvester
parent
2d9d8bb94c
commit
1775e959d6
@@ -37,7 +37,7 @@ class LabelPainter(Plugin):
|
||||
super(LabelPainter, self).attach(image_viewer)
|
||||
|
||||
image = image_viewer.original_image
|
||||
self.paint_tool = PaintTool(self.image_viewer.ax, image.shape,
|
||||
self.paint_tool = PaintTool(image_viewer, image.shape,
|
||||
on_enter=self.on_enter)
|
||||
self.paint_tool.radius = self.radius
|
||||
self.paint_tool.label = self._label_widget.index = 1
|
||||
|
||||
Reference in New Issue
Block a user