mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-10 12:35:06 +08:00
Change ImageViewer to automatically call plugins.
This commit is contained in:
@@ -5,6 +5,5 @@ from skimage.viewer.plugins.canny import CannyPlugin
|
||||
|
||||
image = data.camera()
|
||||
viewer = ImageViewer(image)
|
||||
p = CannyPlugin(viewer)
|
||||
p.show()
|
||||
CannyPlugin(viewer)
|
||||
viewer.show()
|
||||
|
||||
@@ -5,6 +5,5 @@ from skimage.viewer.plugins.lineprofile import LineProfile
|
||||
|
||||
image = data.camera()
|
||||
viewer = ImageViewer(image)
|
||||
p = LineProfile(viewer)
|
||||
p.show()
|
||||
LineProfile(viewer)
|
||||
viewer.show()
|
||||
|
||||
Reference in New Issue
Block a user