drawnow() causing very slow display of images
Show older comments
Hi all,
I've read several other questions on this but didn't find a satisfactory answer. My apologies however, if this is already up.
I am building a GUI to display processed video. I do this using
imshow(image,'Parent',axes)
then
drawnow
for each frame in a loop. It is VERY slow. Approx 0.5 seconds per frame (~12 seconds to display 1 second of video in real time). It also accounts for half my total processing time per frame.
Can I make it faster?
Any help is greatly appreciated!!
Cheers, KB
1 Comment
Mariusz Wilk
on 9 Sep 2018
You can use:
drawnow limitrate
Accepted Answer
More Answers (1)
David Sanchez
on 18 Feb 2014
I solved a similar issue by adding a very short pause, this will clean up the buffer and speed up the pseudo-video. Add:
pause(0.001)
right after drawnow
Categories
Find more on App Building in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!