How to program previous and next pushbuttons?

조회 수: 2 (최근 30일)
BME_Sharaf
BME_Sharaf 2016년 4월 29일
댓글: Image Analyst 2021년 10월 18일
Whoever can help me, kindly find the attached screenshot of the GUI I created so you can understand what I exactly need. The first axes has a set of images and so does the second axes, the second set of images function as the results of the first one, so what I need to do is to be able to shuffle between them both at a time, using either previous and next pushbuttons or a slider, I'm new to matlab and GUI, and I can't figure out how to have this done. Can anyone please help me through that? Thanks so much in advance!

답변 (1개)

Image Analyst
Image Analyst 2016년 4월 29일
One way is to create a global variable that both button callbacks can see and you use that as the index into a list of images that you display. Then you increment or decrement the old index (depending on whether the next or previous button, respectively, was called) and call a function AnalyzeSingleImage(index) with the new/current index. In that AnalyzeSingleImage() function (which you need to write), you display the original image in the left axes, display the processed one in the middle axes, and whatever you want in the right axes.
  댓글 수: 2
Franck paulin Ludovig pehn Mayo
Franck paulin Ludovig pehn Mayo 2021년 10월 18일
I have a little similar question but it has not been answered yet.Please , i will be very grateful if you could help me.
Image Analyst
Image Analyst 2021년 10월 18일
@Franck paulin Ludovig pehn Mayo it looks like Geoff gave you the answer I would have given.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by