How to display images dynamically in MATLAB GUI ?

16 次查看(过去 30 天)
For my project i need to do the following : When a value is entered, based on certain attributes, images are selected from a folder and displayed.
Now for each value number of images displayed will be different. How can I display these images on a single screen next to each other ?

回答(2 个)

Image Analyst
Image Analyst 2017-4-21
You can use imshow(). Optionally before that you can use subplot(). Or you can use GUIDE and create axes in whatever locations you want and display the image in whatever axes you want.
This GUI will help the novice user get up to speed very quickly on using GUI-based applications. Everything is laid out in a very simple Step 1, Step 2, Step 3, etc. layout. It is a very good starting point for a typical image analysis application. This application uses GUIDE to do the user interface design, and has most of the basic controls such as buttons, listboxes, checkboxes, radio buttons, scrollbars, etc. It allows the user to select a folder of images, select one or more images and display them, to select a series of options, and to individually or batch process one or more images. The user can.....
  3 个评论
Image Analyst
Image Analyst 2017-4-22
Not sure what version you have, and I don't use App Designer (yet), but until the current or last version, App Designer did not have the capability to have axes. Please upgrade to the current version R2017a.

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2017-4-22
You have two choices:
  1. You can use a single uiaxes(), and provide (computed) XData and YData values to image() in order to place the images beside each other; or
  2. You can use multiple uiaxes(), each of which you compute the Position for (in pixels), and then use image() without any XData or YData values.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by