mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-18 12:30:14 +08:00
Change default Slider update_on value to 'release'
Image filtering is usually slow, so updating on move was usually a bad idea.
This commit is contained in:
@@ -12,9 +12,9 @@ image = data.camera()
|
||||
# You can create a UI for a filter just by passing a filter function...
|
||||
plugin = OverlayPlugin(image_filter=canny)
|
||||
# ... and adding widgets to adjust parameter values.
|
||||
plugin += Slider('sigma', 0, 5, update_on='release')
|
||||
plugin += Slider('low threshold', 0, 255, update_on='release')
|
||||
plugin += Slider('high threshold', 0, 255, update_on='release')
|
||||
plugin += Slider('sigma', 0, 5)
|
||||
plugin += Slider('low threshold', 0, 255)
|
||||
plugin += Slider('high threshold', 0, 255)
|
||||
# ... and we can also add buttons to save the overlay:
|
||||
plugin += SaveButtons(name='Save overlay to:')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user