Slider to scroll through image slices
Show older comments
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 Comments
Rik
on 26 May 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
on 27 May 2018
Image Analyst
on 27 May 2018
Edited: Image Analyst
on 27 May 2018
Try setting the Value property AFTER you set the min and max properties. Also, did you see my answer below?
Stelios Fanourakis
on 27 May 2018
Stelios Fanourakis
on 27 May 2018
Jan
on 12 Jul 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.
Answers (1)
Image Analyst
on 26 May 2018
0 votes
Try Image Browser on the Apps tab of the tool ribbon and see if that's okay.
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!