mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-09 02:57:56 +08:00
API Change: Attach ImageViewer to Plugin after init.
Plugin is now added to the viewer using an inplace add on the viewer instead of on initialization of the plugin. This change means that operations requiring the viewer must be delayed until attach operation.
This commit is contained in:
@@ -5,5 +5,5 @@ from skimage.viewer.plugins.canny import CannyPlugin
|
||||
|
||||
image = data.camera()
|
||||
viewer = ImageViewer(image)
|
||||
CannyPlugin(viewer)
|
||||
viewer += CannyPlugin()
|
||||
viewer.show()
|
||||
|
||||
@@ -5,5 +5,5 @@ from skimage.viewer.plugins.lineprofile import LineProfile
|
||||
|
||||
image = data.camera()
|
||||
viewer = ImageViewer(image)
|
||||
LineProfile(viewer)
|
||||
viewer += LineProfile()
|
||||
viewer.show()
|
||||
|
||||
Reference in New Issue
Block a user