Slider to scroll through image slices
이전 댓글 표시
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
Rik
2018년 5월 26일
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
2018년 5월 27일
Image Analyst
2018년 5월 27일
편집: Image Analyst
2018년 5월 27일
Try setting the Value property AFTER you set the min and max properties. Also, did you see my answer below?
Stelios Fanourakis
2018년 5월 27일
Stelios Fanourakis
2018년 5월 27일
Jan
2018년 7월 12일
@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.
답변 (1개)
Image Analyst
2018년 5월 26일
0 개 추천
Try Image Browser on the Apps tab of the tool ribbon and see if that's okay.
카테고리
도움말 센터 및 File Exchange에서 DICOM Format에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!