mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-08 11:26:12 +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:
@@ -24,7 +24,7 @@ def autolevel(image, disk_size):
|
||||
img_collection = [data.camera(), data.coins(), data.text()]
|
||||
|
||||
plugin = Plugin(image_filter=autolevel)
|
||||
plugin += Slider('disk_size', 2, 8, value_type='int', update_on='release')
|
||||
plugin += Slider('disk_size', 2, 8, value_type='int')
|
||||
plugin.name = "Autolevel"
|
||||
|
||||
viewer = CollectionViewer(img_collection)
|
||||
|
||||
Reference in New Issue
Block a user