Updating images in GUI

3 views (last 30 days)
Giridhar
Giridhar on 20 Jan 2012
Answered: Esuabom on 25 Sep 2014
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?

Answers (2)

Walter Roberson
Walter Roberson on 20 Jan 2012
Add a drawnow() call after the imshow()

Esuabom
Esuabom on 25 Sep 2014
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

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!