How to display a scrollable grid of images in matlab GUI

我是研究僧i 提交于 2019-12-04 13:27:44

问题


How can i display a scrollable grid of images in matlab GUI?

I want something similar to what is shown below

This stackoverflow post describes a way of displaying images in a uitable by setting the 'String' property to an HTML code pointing to an image. But this requires me to save the images to disk which is not an option i would like as these displays are fired up dynamically.

It would also be nice, if i could add a checkbox inside each image so the user can select a subset of them.


回答1:


You can use this tool. In the gui, you should be able to scroll through. But to have title below every image you might have to edit the tool.

Sample output: a grid of images http://www.mathworks.in/matlabcentral/fx_files/22387/12/imdisp.jpg




回答2:


The answer is here:

How can I use scrollbars in MATLAB figure windows when viewing large GUIs?

-> Note: This is a workaround, scrollbars are not available for Matlab-figures

I would suggest to use the tool Prashanth presented in his awnswer and combine it, by putting all elements within the panel.



来源:https://stackoverflow.com/questions/18499311/how-to-display-a-scrollable-grid-of-images-in-matlab-gui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!