フィルターのクリア

Display array of image in a GUI

3 ビュー (過去 30 日間)
Maria Rasmussen
Maria Rasmussen 2018 年 6 月 6 日
回答済み: Sid Parida 2018 年 6 月 6 日
I have a set of images in an array, and I want them displayed in a GUI. I can display a specific image, but I can not display all of them. I am trying to display the image array in a way, that the displayed image changes as the user scrolls/clicks their way through the array. Any way I can do this? I am currently display the images in an axes and using imshow() to display it. I have been stuck for several days, and I have no idea what to search anymore to find some guide or example.
  1 件のコメント
Jan
Jan 2018 年 6 月 6 日
編集済み: Jan 2018 年 6 月 6 日
Please post any details: What exactly is an "array of images"? How do you want to select an image? What does "scrolls/clicks their way through the array" mean? A slider, or is listbox with file names? Please post the current code and ask a specific question.

サインインしてコメントする。

回答 (1 件)

Sid Parida
Sid Parida 2018 年 6 月 6 日
Hi Maria
I have attached two files:
  1. ImageGui.fig
  2. ImageGui.m
This creates a simple GUI and pressing left or right changes the images on the axes. You can add your own images by changing the handles.names variables in the ImageGui_OpeningFcn in ImageGui.m. The images should be in the same directory as the .fig and .m file.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by