Updating images in GUI

4 次查看(过去 30 天)
Giridhar
Giridhar 2012-1-20
回答: Esuabom 2014-9-25
I have a MATLAB GUI designed, inside which I am calling a MATLAB function. The MATLAB function reads images from a particular folder and does some image processing on them. I want to display the images as and when they are read and processed, in the GUI. So, I am passing the GUI handle to that function, and displaying the images using imshow() after every image is read. But, only the last image is getting displayed after the whole processing is done and after the control exits out of that function. What I need though, is for every image to get displayed in the GUI whenever it is being processed. How do I do that?

回答(2 个)

Walter Roberson
Walter Roberson 2012-1-20
Add a drawnow() call after the imshow()

Esuabom
Esuabom 2014-9-25
Hello Walter,
Thanks for your solution.
The challenge with your solution is that it works only when changing images on only one axis.
What will you advice when you have multiple axis you want to update?
Esuabom

类别

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