Slider to scroll through image slices
Afficher commentaires plus anciens
I need a code for a slider to scroll through a stack of images. Like a 3D Viewer.
Any idea please? I have 4 axes and need to control them with a single slider.
6 commentaires
Rik
le 26 Mai 2018
You have asked quite a lot of questions before, and each time my questions are the same: what have you tried already? What is the code you tried? How is your data organized?
If it is difficult to describe it, just attach it.
A slider type uicontrol object has a Min property, a Max property, a Value property and a Callback property. Make that callback a function that sets some axes to some state you want based on the min, max and value properties.
Stelios Fanourakis
le 27 Mai 2018
Image Analyst
le 27 Mai 2018
Modifié(e) : Image Analyst
le 27 Mai 2018
Try setting the Value property AFTER you set the min and max properties. Also, did you see my answer below?
Stelios Fanourakis
le 27 Mai 2018
Stelios Fanourakis
le 27 Mai 2018
Jan
le 12 Juil 2018
@Stelios: Again: please post the complete error message. We cannot guess, in which line the problem occurs.
This does nothing:
filenames = fullfile(fileName);
You have to provide the folder in addition, such that fullfile can join the parts.
Réponses (1)
Image Analyst
le 26 Mai 2018
0 votes
Try Image Browser on the Apps tab of the tool ribbon and see if that's okay.
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!