mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-28 04:23:17 +08:00
f47312a3d1
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.
10 lines
207 B
Python
10 lines
207 B
Python
from skimage import data
|
|
from skimage.viewer import ImageViewer
|
|
from skimage.viewer.plugins.canny import CannyPlugin
|
|
|
|
|
|
image = data.camera()
|
|
viewer = ImageViewer(image)
|
|
viewer += CannyPlugin()
|
|
viewer.show()
|