how to display images in a tiff file using one axis and control using slider

3 vues (au cours des 30 derniers jours)
in a gui of axes and two push buttons, i have to display multiple images in axes and to view them one by one using slider that can navigate like a scroll bar horizontally.

Réponse acceptée

Walter Roberson
Walter Roberson le 11 Déc 2017
https://www.mathworks.com/matlabcentral/answers/352254-adjusting-slider-to-scroll-trough-each-image-in-3d-stack-in-gui
Might help
  5 commentaires
Arjun Chawla
Arjun Chawla le 21 Déc 2017
slider1 has to scroll through a 3D stack being shown on a 3D stack (from a tiff file) as a slideshow. Once the slideshow finishes, the slider is there to manually browse through the stack (mounted on axes1). My professor wanted us to use a loop in the push button callback for some reason idk. I hate writing GUI code but whatever. Thank you for the help!
Walter Roberson
Walter Roberson le 21 Déc 2017
I suggest you write your slider callback to get the current Value of the slider, and to pass it to another function "FUN2" to do the control of the image display.
I then suggest you write a timer callback that gets the current slider position, increments it, and calls "FUN2" with the new value to implement the image display.
If not a timer callback, then loop through incrementing the slider positions and calling FUN2 each time.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by