mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-20 12:40:31 +08:00
Update the paint tool shape with the viewer image changes
This commit is contained in:
@@ -43,6 +43,10 @@ class LabelPainter(Plugin):
|
||||
self.paint_tool.label = self._label_widget.index = 1
|
||||
self.artists.append(self.paint_tool)
|
||||
|
||||
def _on_new_image(self, image):
|
||||
"""Update plugin for new images."""
|
||||
self.paint_tool.shape = image.shape
|
||||
|
||||
def on_enter(self, overlay):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user