-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove skimage viewer in tutorials #55
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -2,9 +2,9 @@ | |||||||||||||||||||||
import matplotlib.pyplot as plt | ||||||||||||||||||||||
|
||||||||||||||||||||||
from skimage import io | ||||||||||||||||||||||
from skimage.viewer import ImageViewer | ||||||||||||||||||||||
from skimage.viewer.widgets import Slider | ||||||||||||||||||||||
from skimage.viewer.plugins.base import Plugin | ||||||||||||||||||||||
#from skimage.viewer import ImageViewer | ||||||||||||||||||||||
#from skimage.viewer.widgets import Slider | ||||||||||||||||||||||
#from skimage.viewer.plugins.base import Plugin | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
image = io.imread('../../images/clock_motion.png') | ||||||||||||||||||||||
|
@@ -48,13 +48,13 @@ def apply_inverse_filter(image, T, a, b, K=5, clip=500): | |||||||||||||||||||||
|
||||||||||||||||||||||
return gg | ||||||||||||||||||||||
|
||||||||||||||||||||||
viewer = ImageViewer(image) | ||||||||||||||||||||||
|
||||||||||||||||||||||
plugin = Plugin(image_filter=apply_inverse_filter) | ||||||||||||||||||||||
plugin += Slider('T', 0, 1, value=0.5, value_type='float', update_on='release') | ||||||||||||||||||||||
plugin += Slider('a', -0.1, 0.1, value=0, value_type='float', update_on='release') | ||||||||||||||||||||||
plugin += Slider('b', -0.1, 0.1, value=0, value_type='float', update_on='release') | ||||||||||||||||||||||
plugin += Slider('K', 0, 100, value=15, value_type='float', update_on='release') | ||||||||||||||||||||||
plugin += Slider('clip', 0, 1000, value=750, value_type='float', update_on='release') | ||||||||||||||||||||||
viewer += plugin | ||||||||||||||||||||||
viewer.show() | ||||||||||||||||||||||
#viewer = ImageViewer(image) | ||||||||||||||||||||||
# | ||||||||||||||||||||||
#plugin = Plugin(image_filter=apply_inverse_filter) | ||||||||||||||||||||||
#plugin += Slider('T', 0, 1, value=0.5, value_type='float', update_on='release') | ||||||||||||||||||||||
#plugin += Slider('a', -0.1, 0.1, value=0, value_type='float', update_on='release') | ||||||||||||||||||||||
#plugin += Slider('b', -0.1, 0.1, value=0, value_type='float', update_on='release') | ||||||||||||||||||||||
#plugin += Slider('K', 0, 100, value=15, value_type='float', update_on='release') | ||||||||||||||||||||||
#plugin += Slider('clip', 0, 1000, value=750, value_type='float', update_on='release') | ||||||||||||||||||||||
#viewer += plugin | ||||||||||||||||||||||
#viewer.show() | ||||||||||||||||||||||
Comment on lines
+51
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hesitated to remove being afraid that the logic would be difficult to understand afterwards. No strong feelings through.